Welcome Guest Search | Active Topics | Sign In | Register

Live Uploader Testing Options
Dekaiden
Posted: Wednesday, November 5, 2008 8:11:22 AM
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
eo_support
Posted: Wednesday, November 5, 2008 8:22:00 AM
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
Dekaiden
Posted: Wednesday, November 5, 2008 9:20:26 AM
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
eo_support
Posted: Wednesday, November 5, 2008 9:25:08 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Cool. Glad you found it!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.