Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ASP script error using softartisan

Posted on 2004-04-26
5
Medium Priority
?
435 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 400 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

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!

Question has a verified solution.

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
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.…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

596 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