Rank: Newbie Groups: Member
Joined: 8/12/2010 Posts: 1
|
This may have already been posted but finding it was beyond my abilities. I am using the UploadControl and though it works fine in my development enviroment once it is on the server and I attempt to upload something it fails and I recieve an error.
What I can tell you is that I set the temp file location and upload location via code and not directly within control. The error I am recieving is "The path was not of legal form"
I do believe that it is uploading to the temporary file location, but is not moving the files correctly to the final location.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This usually has to do with your TempFileLocation or FinalFileLocation setting to an invalid value. I would suggest you to set both properties to a simple fixed location and see if that works. If that works, then you can trace back to your code to set those properties and see why when it is set by code it won't work. The Uploader does not care whether the property is set by code or through .aspx, but you must always set TempFileLocation to a fixed value (meaning you can not change it during your app's life time, for example, setting it to one value for UserA, then set it to another value for UserB would cause problem for you).
Thanks!
|