Rank: Member Groups: Member
Joined: 10/28/2008 Posts: 12
|
Good Afternoon,
For the past few weeks I've been working locally with the uploader and I got everything working the way I want it to (for the most part). I tried uploading everything to test it remotely and I'm getting the following error:
Access to the path is denied.
Dim tempFileName As String = file.TempFileName Dim finalFileName As String = System.IO.Path.Combine(dir2, finalName & varExt)
If System.IO.File.Exists(finalFileName) Then System.IO.File.Delete(finalFileName) End If
System.IO.File.Move(tempFileName, finalFileName) <-- Here's the error
Permissions have already been set on the server to write; Am I missing something?
Respectfully, Dekaiden
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There can only be two problems:
1. finalFileName has the wrong value; 2. finalFileName has the correct value, but the permission has not been set correctly;
Most likely it has to do with permissions since it has been working for you locally. In any case, you can try to to create a file with the same name with code without using AJAXUploader, that should help you to narrow down the problem.
Thanks
|
Rank: Member Groups: Member
Joined: 10/28/2008 Posts: 12
|
Got it working :)
It wasn't a problem with the Final Destination; it was a problem with permissions from the Temp location. :)
Thank You
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Cool. Glad you found it!
|