Solved

ASP script error using softartisan

Posted on 2004-04-26
5
424 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

772 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