I have a problem with AspUpload. It's about sending the file name to my database. First of all I don't know the exact amount to post, so, I did a little function for this. The amount is between 1-20. In my database I have fields named 1-20, and text fields for the text to the files that is named "text1-20". My code:
I want to seach though the drives i.e c or d drives and find for the folders and subfolders and even the files and by that order only it should be inserted into the database.I am using MSACCESS database.
when I submit I get the error message "File not found"
So a did a respnse write to write my filename and found it is now called 2006_Apr_19-83955.23.bin It seems to be the time as it changes each time I try and get the filename to write...
this is the code on my delete page
<% Dim Upload Dim FileName Dim Folder Set Upload = New clsUpload FileName = Upload("File1").FileName response.write "Here is the file " & FileName & " name <br>"
Folder = Server.MapPath("..country") & "" & strPathToSave response.write "Here is the folder " & folder & " name"
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?
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.
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.
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?
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.
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.
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.
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.
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
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
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.
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?
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:
I'm looking for a way to check if a directory has any filenames with 'w9' in it, and if so print 'yes' in the appropriate place. My database has a field called CustomFieldFilesDir where the appropriate folder structure is already entered for each person ex. 'p:john doe'. I've searched and found scripts that look at extensions but not the file names themselves.
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:
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:
Because I need a good hosting, and most of the dedicated one's i found don't have these components installed on the server. and I don't want to pay 300 bucks for each on to be installed on the server.
found this http://www.planet-source-code.com/vb...txtCodeId=6569
but what about the aspjpeg substitute ?
Also I'm not a coder so I am trying to tell my coder what to do, theer seems to be alot of mis information as she is from india.
Your help is appreciated.
Do you think I should just hire someone to covert it to php for hosting costs ?
Also another question, if I converted it to .net ( I heard someone that you don't need the asp components for the .net as coding substitute it) is this true ?
I installed ASPUpload component evaluation version on my personal computer for development and testing purposes and now one month has completed, and the component has expired.
I re-installed evaluation copy but it didn't work.
i have this form to upload a document to a folder on the server. i have a field where you browse the files on your computer to upload to the server. once that field is chosen i would like another field to be populated automatically with only the document's name, without the path extension on it. does anyone know how to go about doing this?
My problem is: i need to write an ASP page which first checks whether the user has permissions to download a ZIP file, and then streams the file itself if the user is allowed to see it.
I have succeeded until this point, but the client browser asks to save the file with the original filename (and ASP extension). Obviously this would mean making the downloaded file unusable at client side, unless I tell the site user to manually rename it, but this is not a solution.
So I ask you: is there any way for an ASP page to stream data to the browser and have it saved with a default file name and extension which are different from the page's ones? Code:
I want to have a form where there is a textfield and a Browse... button to the right of it. I want the user to be able to press the Browse... button and select a file and then that filename be returned to the textfield.
I don't want it to upload it or anything like that...I just want to know the filename that the user has selected. Also, when the user presses the Browse... button, I want it to automatically go to a certain place.