Smart Image Processor ASP 2 Support Product Page

Solved

Error folder save tmp

Reported 22 Feb 2010 19:38:20
1
has this problem
22 Feb 2010 19:38:20 Luca lucag posted:
Hi,

I have this problem:
----
Upload Error
(21) An error has occurred while saving the file 'rad9BD7B.tmp' in folder D:\Inetpub\webs\mysite\dinamic\xxx\. Maybe you don't have the proper permissions.
----
PAU and SIP are setted on absolute

<
%'*** Pure ASP File Upload 3.0.15
' Process form form1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "/ScriptLibrary"
pau.ConflictHandling = "uniq"
pau.StoreType = "file"
pau.ProgressTemplate = "vista_look.htm"
pau.ProgressWidth = 300
pau.ProgressHeight = 100
pau.UploadFolder = ""
Dim uploadfile
set uploadfile = pau.AddField("file")
uploadfile.UploadFolder = """../../public/fotoart"""
uploadfile.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
Dim uploadfile2
set uploadfile2 = pau.AddField("file2")
uploadfile2.UploadFolder = """../../public/fotoart"""
uploadfile2.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
Dim uploadfile3
set uploadfile3 = pau.AddField("file3")
uploadfile3.UploadFolder = """../../public/allegartic"""
uploadfile3.AllowedExtensions = "DOC,PDF,XLS" ' "custom"
pau.ProcessUpload
pau.SaveAll
%>
<
%' Smart Image Processor 2.5.5
Dim sip1
Set sip1 = New ImageProcessor
sip1.Key = "61EB1A6B-C89E-46B6-9A0B-574CB6DABE98"
sip1.ScriptFolder = "/ScriptLibrary"
sip1.Component = "Auto"
sip1.Source = "upload"
sip1.AutoOrient = false
sip1.KeepMetaData = false
sip1.Matte = "#FFFFFF"
sip1.UploadFields = "file"
sip1.GetFiles
While sip1.HasFiles
sip1.LoadFromSource
sip1.Resize 200, 200, true
sip1.Overwrite = true
sip1.SaveJPEG 80
sip1.MoveNext
Wend
Set sip1 = Nothing
%>


I don't know why SIP creates a temporary file in the "xxx", instead of doing it in "fotoart" folder.

positions

Thank you
Luca
PS
Is possible to make a resizing of 2 file than 3?

Replies

Replied 26 Feb 2010 11:29:59
26 Feb 2010 11:29:59 Miroslav Zografski replied:
Hello Luca,

which IIS version you use?

regards,
Replied 01 Mar 2010 12:34:40
01 Mar 2010 12:34:40 Luca lucag replied:
Hi Miroslav

web server Microsoft-IIS/6.0

RESOLVED!

this is problem:

# pau.UploadFolder = ""  


SIP maybe don't find the different position in

uploadfile.UploadFolder = """../../public/fotoart"""


New code:

'*** Pure ASP File Upload 3.0.15
' Process form form1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "/ScriptLibrary"
pau.ConflictHandling = "uniq"
pau.StoreType = "file"
pau.ProgressTemplate = "vista_look.htm"
pau.ProgressWidth = 300
pau.ProgressHeight = 100
pau.UploadFolder = """../../public/fotoart""" '<--- CHANGED
Dim uploadfile
set uploadfile = pau.AddField("file")
uploadfile.UploadFolder = """../../public/fotoart"""
uploadfile.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
Dim uploadfile2
set uploadfile2 = pau.AddField("file2")
uploadfile2.UploadFolder = """../../public/fotoart"""
uploadfile2.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
Dim uploadfile3
set uploadfile3 = pau.AddField("file3")
uploadfile3.UploadFolder = """../../public/allegartic"""
uploadfile3.AllowedExtensions = "DOC,PDF,XLS" ' "custom"
pau.ProcessUpload
pau.SaveAll
 


Thank you
regards
Luca
Replied 01 Mar 2010 14:45:27
01 Mar 2010 14:45:27 Miroslav Zografski replied:
Hello Luca,

Yes, that was the problematic spot. Sorry I haven't noted that.

Regards,

Reply to this topic