Solved

ASP script error using softartisan

Posted on 2004-04-26
5
421 Views
Last Modified: 2008-02-26
We have an upload script which allows us to upload multiple files using SoftArtisans Fileup code programmed in ASP.
The page works perfectly when uploading single files on any platform or multiple files from a PC but the problem is when a Mac tries uploading multiple files. We get an error on line 26 which in the code is -  upl.Form(item).SaveAs Path & FileName

The entire code is listed below.

<%
Server.ScriptTimeout=9999
Set upl = Server.CreateObject("SoftArtisans.FileUp")

name = upl.form("name")
quoteId = upl.form("quoteId")
customerId = upl.form("customerId")
projectName = upl.form("projectName")

path = Application("UploadPath") & customerId & "\" & quoteId & "\images\"
upl.Path = path

for each item in upl.form
   if IsObject(upl.form(item)) Then

      if instr(upl.Form(item).ContentType,"image")>0 then
         FileName = Mid(upl.Form(item).UserFilename, InstrRev(upl.UserFilename, "\") + 1)
         upl.Form(item).SaveAs Path & FileName
      end if
   end if
next

url = "/admin/jobs/uploadImages.asp?customerId="& customerId &"&name="& server.urlencode(name) & "&quoteId=" & quoteId & "&projectName=" & server.urlEncode(projectName)
response.redirect url
%>

What is causing this error for Mac's and how can we correct it?

Thanks
0
Comment
Question by:wookaka
  • 2
5 Comments
 
LVL 30

Expert Comment

by:SteveGTR
Comment Utility
Does setting AspCompat=true in your Page directive help?
0
 

Author Comment

by:wookaka
Comment Utility
I'll try that out, in the mean time, here is the exact error message I receive.
The line 26 indicated is:
upl.Form(item).SaveAs Path & FileName
in the actual code above was reduced when posted.


SoftArtisans.SAFile.1 error '8007007b'
Error occurred when moving cached file to final destination. Please check the NTFS permissions for the directory "C:\WINNT\TEMP\" and the directory containing the file "\\10.0.0.108\domain.com\public\public15141350493\4423121346\images\". These directories require Read, Write and Delete permissions by the anonymous user ( NT account: IUSR_computername ) and/or by your authenticated users.The filename, directory name, or volume label syntax is incorrect.
/admin/jobs/_uploadImages.asp, line 26

0
 
LVL 30

Accepted Solution

by:
SteveGTR earned 100 total points
Comment Utility
It appears the IIS account IUSR_computername doesn't have write access to the output directory. You could give it access or you could impersonate another user in your ASP app by modifying the web.config file:

<identity impersonate="true"
    userName="domain\username"
    password="password"/>

See this for more information:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfidentitysection.asp
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now