ASPUPLOAD + Change Upload Folder.
I am triying to upload a file with ASPUPLOAD which works fine the only problem I need to change the folder where is going to be uploaded.
I tried with:
folder = ""+cstr(request.querystring("folder"))
path=Server.MapPath("."&folder)
Set Upload = Server.CreateObject("Persits.Upload.1")
Upload.OverwriteFiles = true
Upload.SetMaxSize 1048576
Count = Upload.Save (path)
But always uploads into the same folder (where the ASP is uploaded).
View Replies
ADVERTISEMENT
I use ASPUpload as a component to allow users to upload images to website. I did not find on ASPUpload.com website clear explanation on how to upload entire folder of images to website.
1) Is it possible to do using ASPUpload?
2) Could you recommend me other sites, articles etc to read about this problem (with code samples)? Or could you provide me an example of code samples.
View Replies
View Related
I am using what seems to be a straight forward script but am getting an error, is the term Funtion not accepted in aspupload?:
the error is:
Microsoft VBScript compilation error '800a03ea'
Syntax error
/legacyUploadscript.asp, line 15
Function isValidFile(filename)
The script I have created is this: ...
View Replies
View Related
Is there a way to change permissions on a folder in ASP? Basically I make a folder using the FSO, and I want to change the permissions on thaty folder with ASP commands.
View Replies
View Related
Can any one give the code or the link of how 2 upload a folder consisting of some excel files without using a 3rd party component.Remember i should upload the folder at one click.
View Replies
View Related
how to upload a folder not just a file?
View Replies
View Related
Can i upload folder by using pure ASP?? The folder that will be upload may contain various type of file. I know how to upload file but i can't find any coding to upload the folder.
View Replies
View Related
I have no problem uploading files of
up to 6MB but when trying to upload a 50MB file it hangs for ages
before coming up with an error. My questions are;
- Has anyone else used N2D Personal Web Folder and if so, did they
encounter this problem ?
- Is the error due to a timeout problem that can be reset either on
the server (W2K server) or via IIS (IISv5)
I'd really appreciate any help anyone can give me with this, if it
would help to see the code please let me know.
View Replies
View Related
I'm trying to write a function that allows a user to upload photos (like a photo album). I currently use AspSmartUpload as my upload component - but I only know how to upload one file at a time. Does anyone know if it's possible to upload an entire folder at once, or will the user only be able to upload one photo at a time?
View Replies
View Related
I need to upload a file to a folder wich might not exist yet. How can i create a folder before uploading the file or is there a parameter in asp that creates a folder before copying the file there if it doesn't exit?
View Replies
View Related
When I use the following code, i always get a button with browse.. on it.
<input type="file" name="file1">
Is it possible to change what it says on this button. e.g what would someone do if they were creating a site in another language.
View Replies
View Related
I have virtual directory where I run test.asp page with only this code inside:
<%Response.Write now()%>
As a result, if I go into the IE and browse for the test.asp page, I get :
1/22/2004 14:18:04
If I copy this page on some other(existing) virtual directory, I get as a
result 22.1.2004 14:19:06
If I create a new virtual directory and I copy the page there, I get :
1/22/2004 14:18:04
Seems like that IIS takes english date format even if my regional setting is
:
d.M.yyyy and I would like that date on the page is always like this:
22.1.2004 14:19:06
Where I can change this setting?
View Replies
View Related
I can get this to upload files but I can't get items out of the Files
collection into the database. I'm getting this error
Microsoft VBScript runtime error '800a005b'
Object variable not set
/admin/media_upload_recording_process.asp, line 94
Code:
View Replies
View Related
I'm trying to create a dynamic page where I can edit a region from a simple admin area. I'm pretty confident that I can handle the database and asp coding (yeah who am I trying to kid) but what I want to be able to do is upload an image from the admin area too.
My hosting company is telling me that they have aspupload installed. Is this all I need and if so is there a tutorial anywhere that can help me on my way?
View Replies
View Related
What I'm trying to do is upload an image(which I've managed with the sample code from the ASPUpload site),then I want to rename the image to a number, namely the value of an autonumber field in my Access database.i.e. 1.jpg, 2.jpg etc
I have no problem retrieving the autonumber etc it's the renaming part I'm struggling with.I'm using ASPUpload v2
Could anyone post some sample code or point me to somewhere that covers this.I've had a search around and can't seem to find much.
View Replies
View Related
I need a forum that takes in maybe 5 images. and the a seperate page a script that will upload it to a folder called "images" in the same directory as where the .asp pages are located.I need the script to also read the name of the files - because i plan on inserting them into a db.
View Replies
View Related
I am using ASPUpload and trying to upload images to a database. I have had success in getting the image to the db and then dispalying the imnage on a webpage. The problem is wheni have more than one image for a record and want to display all images for that record. Has anyone done this with ASPUpload that might be able to look at my code and give me some tips?
View Replies
View Related
Does anyone know where I can get a FREE version of the AspUpload.dll file. I know that a paid version is available at aspupload.com and that at one time this utility was free.
View Replies
View Related
I'm trying to get the ASP component ASPUPLOAD to work. I have a form with fields and their own browser button. I'm using the Post method to send to an ASP page. I'm getting an error after clicking the upload button on the form to upload the images that says "Method Post is not allowed for this ASP page.
View Replies
View Related
do I store the images (cover images of movies) in a folder or in the DataBase? Storing in DB has it advantage such as backing-up db will also back-up everything. but will it be fast... enough to retrive the images. I am already conserned over the speed of things... as I am using Access DB with over 5,000 records already in the data base.
View Replies
View Related
Anyone know how to upload a few images file simultaneously and save the server path of all the images in a record in different field?
View Replies
View Related
I just noticed my upload function isn't working since I have move the folders and files to different directory.
Now I get this error:
Error Type:
Persits.Upload.1 (0x800A003D)
Wrong Content-Type. Make sure you have included the attribute ENCTYPE="multipart/form-data" in your form.
/foldername/UploadScript.asp, line 54
line 54 is:
Upload.Save "z:
ewfolder"
I have given modify, read & write permission for IUSR_MachineName account on NewFolder and given Read & Write permissions in IIS.
I also included ENCTYPE="multipart/form-data" attribute in my upload form.
View Replies
View Related
I'm wondering if someone can have a quick look at my code and see if
there's anything that I've done wrong.
<%
DIM File, Upload, Count, Ext
DIM Mail, strMsgHeader
Set Upload = Server.CreateObject("Persits.Upload.1")
Count = Upload.SaveVirtual("/html/uploads/")
IF NOT Count=0 THEN
FOR EACH File IN Upload.Files
Ext = UCase(Right(File.Path, 3))
IF Ext <> "TXT" AND Ext <> "DOC" THEN
Response.Write Upload.Form("FirstName") & ",<br><br>"
Response.Write "Sorry, your resume " & File.Path & " is not in a .DOC
or .TXT format and has not been delivered through our system. Please
save your resume in one of these formats and resubmit it."
File.Delete
ELSE
Set File = Upload.Files("fResume")
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "63.99.213.33"
Mail.From = Upload.Form("Email")
Mail.AddAddress "changed@emailaddress.com"
Mail.Subject = "Resume"
strMsgHeader = "This email was delivered from your website." & vbCrLf
& vbCrLf
Mail.Body = strMsgHeader & "Email: " & Upload.Form("Email") & vbCrLf &
"First Name: " & Upload.Form("FirstName") & vbCrLf & "Last Name: " &
Upload.Form("LastName") & vbCrLf & "Position: " &
Upload.Form("Position") & vbCrLf & vbCrLf & "Comments: " &
Upload.Form("Comments")
IF Count > 0 THEN
Mail.AddAttachment Upload.Files(1).Path
On Error Resume Next
Mail.Send
IF Err <> 0 THEN
Response.Write "There was an error sending your message. Please visit
our Contact Us page and send a message to our Webmaster to report this
error: <B>" & Err.Description & "</B>"
ELSE
Response.Write Upload.Form("FirstName") & ","
Response.Write "<p>Thank you for contacting our recruiter. Your resume
has been received and will be reviewed shortly. If we have a position
is available that matches your skills, we will contact you to schedule
an interview. We keep all resumes on file for a period of 6 months,
please feel free to resubmit your resume after this time for future
consideration.</p>"
File.Delete
END IF
END IF
END IF
NEXT
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<P>
<%
' personalize form
' displays name before your message.
strName = Request.Form("FirstName")
Response.Write strFirstName
%>,</P>
<P>Thank you for emailing us your resume.</P>
</body>
</html>
View Replies
View Related
I'm Using ASPUpload Component 3.0 demo on my personal system.
Can I access individual items using a string variable like;
strFieldName = "FILE1"
objUpload.Files(strFieldName).FileName
it works fine if i give a string value to files collection;
objUpload.Files("FILE1").FileName
View Replies
View Related
I've developed a simple upload section of my site that allows the user to upload mp3 audio clips of new bands.
I've used AspUpload v2.0 as this is provided by my ISP, but even though these clips are no more than 500KB in size, the server is generating timeout errors.
I asked my ISP why this is the case and they said that the server timeout is set to 10 seconds so depending on the connection speed of the user who's uploading the files it will mean that they can only upload files of 200KB even on broadband.
Is there anyway round this?
View Replies
View Related
anyone have experience with this? godaddy says aspupload is already installed. I am verrrry new to website work and am trying to make http://peppgum.com/peppphotos.htm upload a file to the /images folder so they can be read by the simpleviewer flash dealio.
I put the http://www.aspupload.com/manual_simple.html HTML code i found there into the page, and got the box, browse.submit. then i copied the yellow box code for asp script1.asp into notepad and saved as .asp
i frontpage ftpd them to godaddy but not working? i need to limit it to .jpg files as simpleviewer only works with .jpgs, how can i do this? and rename the files once uploaded starting at 1-infinity?
View Replies
View Related
I'm trying to start to use one of these components (see other zbriu thread).
View Replies
View Related
I'm trying to use the script below to upload 3 files as well as insert information into a database. The upload does work, and the Position Sourse, Applicant Tracking and Position ID insert, but the Resume Link, Reference Link, and Additional field names aren't captured. Code:
View Replies
View Related
I have successfully setup a form that uploads a file using the ASPUpload script and it shows a progress bar, indicating the status of the upload.
Their script manual is at:
http://www.aspupload.com/manual.html
My asp skills are very poor(!) but...
...I would like to improve this script so that:
1. It will create a unique subfolder for the uploaded file. The name will be given (I will have a php script that auto generates this).
2. It will store the uploaded file in this unique subfolder.
3. It will send an email showing the content of the form text fields.
4. Certain form text fields will be shown on the last page.
Can anyone help?
View Replies
View Related
I am having a heck of a time resolving this error:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'path'
/_admin/inc_manage_create_listing_done.asp, line 12
This script is trying to post a form to a database and pictures to a folder. (line 12 is in red.)
View Replies
View Related
I am using freeASPupload on a form which requires the form to be enctype="multipart/form-data".
However, the submit button on the same form is updating a database, the update will not work if enctype="multipart/form-data".
I have removed the enctype and the update works but the upload doesn't. Does anyone know of a solution?
View Replies
View Related
Ive been working on a form that adds data to a database and saves a file on a spot in the server
The Upload works fine by itself and the Form adds data fine by itself ... but when I use both scripts together it said that I couldnt use request.form Any way the first part of the code is the ASP Uploader portion It saves the file to a folder on the server and then would write out all the form values on the screen, what I want it to do is to write those to specific field names in a database.
The syntax in the Uploader portion uses a command to generically pull all field names and values but nothing to pull specific ones. Code:
View Replies
View Related
I have an application that can upload real estate images to a website. The set of images is headed by a 'default' image. The default image is renamed to a prefix + property ID (example: DR91.jpg). The other images for the property are named differently. Their format is Prefix + property ID + time stamp (example: DR91_0401240231442.JPG).
The problem is if I delete or attempt to change the images for the property, the default image will either not delete from the admin area or when I get it deleted, I upload a NEW default image and it appears to be the same image.
I verified the default image is deleted from the directory (on the server) when asked to do so from the admin area. It looks like the image is cached, because the new file is the same name as the original default image (DR91.jpg) when the other images are not cached because they are named with a time date stamp and don't have the same name. Code:
View Replies
View Related