Reply
Persists ASPUpload
Old 07-17-2008, 06:00 PM Persists ASPUpload
Sleeping Troll's Avatar
Ultra Talker

Posts: 264
Name: Butch Begy
I have no problem with my form text via Upload.form, however My image file does not seem to be getting saved.

Code:
 
Set File = Upload.Files("ImgFile")
If Not File Is Nothing Then
Filename = file.Filename
Response.Write(Filename)
File.SaveAs "../Images/Products/" & Filename
End If
Response.Write(Filename) is correct, So where am I making an error?

Last edited by Sleeping Troll : 07-17-2008 at 07:56 PM.
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-18-2008, 11:49 AM Re: Persists ASPUpload
chrishirst's Avatar
Super Moderator

Posts: 19,022
Location: Blackpool. UK
is there a folder called "/images/products/" ABOVE the location of the script?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System | Bits & Bobs
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-18-2008, 07:38 PM Re: Persists ASPUpload
nyef's Avatar
Ultra Talker

Posts: 267
Name: Lucas
You need to use the Upload.Save method to save the uploaded file. Consult the documentation at www.aspupload.com
__________________
~nyef
Over 5000 free games!
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Old 07-23-2008, 01:30 AM Re: Persists ASPUpload
Skilled Talker

Posts: 97
Check the file path. I am sure there is a problem with pathing only..
saurabhj is offline
Reply With Quote
View Public Profile
 
Old 08-22-2008, 12:30 PM Re: Persists ASPUpload
itHighway's Avatar
Skilled Talker

Posts: 66
Name: Zeeshan Dar
Location: GUJ
Many servers for security reasons only allow virtual path with Pesists upload component.

Try following:
file.SaveAsVirtual "/images/products/"& file.FileName
itHighway is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Persists ASPUpload
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.11002 seconds with 12 queries