Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1003
  • Last Modified:

Upload form in ASP

Ok i'm trying to get SA Fileup working for uploading files to my server, here is the error messgae i keep getting:

SoftArtisans.SAFile.1 error '80070005'

Error occurred when moving cached file to final destination. Please check the NTFS permissions for the directory "e:\somepath\docs\" and the directory containing the file "e:\someOtherPath\docs\newinvoice.pdf". These directories require Read, Write and Delete permissions by the anonymous user ( NT account: IUSR_computername ) and/or by your authenticated users.Access is denied.

/clientlink/admin/formresp.asp, line 10

My code is (you can try the page for yourself here: http://www.aiwmedia.com/clientlink/admin/form.asp)

<%@ LANGUAGE="VBSCRIPT" %>
<HTML>
<HEAD>
<TITLE>Upload File Results</TITLE>
</HEAD>
<BODY>
Thank you for uploading your file.<br>
<% Set upl = Server.CreateObject("SoftArtisans.FileUp") %>
<% upl.Path = "e:\kunden\homepages\29\d90486262\aiwmedia\clientlink\docs\" %>
<% upl.Save %><BR>
Total Bytes Written: <%=upl.TotalBytes%>
</BODY>
</HTML>

i have given read/write/execute permissions to the docs folder and for all files within to the IUSR. what can i do?
0
alex_wareing
Asked:
alex_wareing
  • 7
  • 5
  • 5
1 Solution
 
fritz_the_blankCommented:
Are you certain that you have given the IUSR_  READ/WRITE/DELETE permissions to both directiories? Sometimes a reboot is necessary on NT before this really works.

FtB
0
 
alex_wareingAuthor Commented:
i have shared hosting and i have set the preference, but i can't reboot the server!
0
 
fritz_the_blankCommented:
If you have shared hosting, I suspect that you may not be able to set those permissions. Any chance of running this by the server administrator?

FtB
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
alex_wareingAuthor Commented:
i have shared hosting with oneandone.co.uk. The permissions can be set, and work when i do them for databases. When i use this code:

<%
Set objFile = Server.CreateObject("SoftArtisans.SAFile")
objFile.Path = "e:\somePath\docs\"
objFile.Create "oraMutantur.txt"
%>

it writes the file ok

0
 
fritz_the_blankCommented:
Can you delete the file as well? The message says that delete is required.

ftB
0
 
fritz_the_blankCommented:
BTW, I get the same error message here.

FtB
0
 
alorentzCommented:
Is this the same thing as theother thread, because you have not responded there:

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21215104.html

For 1and1 you need to use the 1and1 control panel to give access to the IUSR.  You login to 1and1 -> Administration -> Applications -> WebFiles

Then setup the security for the folder you want to upload to.
0
 
alex_wareingAuthor Commented:
No these are 2 seperate questions, the other question is how to go about it.

I have done exactly as you show and use WebFiles to set the permissions, and yet i still get this error message? which is why i thought it may be a code issue
0
 
alorentzCommented:
PS, probably not the best idea to display the full paths in your errors....that is account specific information for you, and not that safe out here on the web!
0
 
alorentzCommented:
>>No these are 2 seperate questions, the other question is how to go about it.

So is the other question answered or do you need more help there?

>>which is why i thought it may be a code issue

Not a code issue...
0
 
fritz_the_blankCommented:
The error message clearly points to a permissions issue. I realize that you have set READ and WRITE, but the error message indicates that DELETE is necessary as well.

FtB
0
 
alorentzCommented:
>>Error occurred when moving cached file to final destination

I don't think this is delete error?  Is it?
0
 
alorentzCommented:
>>I am going to edit out the full paths in the threads for security purposes.

Thanks.
0
 
fritz_the_blankCommented:
Yes--it could be as the delete is part of the move.

FtB
0
 
alex_wareingAuthor Commented:
FtB i realise the security issue with posting paths, please could you edit the path in the code block in the orginal question as well thanks
0
 
alex_wareingAuthor Commented:
Well i finally got through to oneandone support and they told me that the problem was with the delete permission. Apparently i had set it using the managment app but the changes hadn't been made on the server itself for some reason??? anyway its been done manually for me. was driving me nuts for a while then. thanks guys
0
 
fritz_the_blankCommented:
Glad to have helped,

FtB
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 7
  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now