Solved

ASP script error using softartisan

Posted on 2004-04-26
5
423 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
ID: 10921848
Does setting AspCompat=true in your Page directive help?
0
 

Author Comment

by:wookaka
ID: 10940041
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
ID: 10941742
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ASP.NET e-commerce website 4 59
Asp.net mvc 5 5 44
convert html to string 6 22
ASP.net Fit 3 divs on screen side by side 3 6
Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

864 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

24 Experts available now in Live!

Get 1:1 Help Now