Solved

ASP script error using softartisan

Posted on 2004-04-26
5
431 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

724 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