Ask a Question related to ASP Database, Design and Development.
-
dave #1
Re: problem with upload file and save the name to db ??
Did you ever find an answer to this?
"A. J." <anonymous@devdex.com> wrote in message
news:uXYyGcv6CHA.2348@TK2MSFTNGP12.phx.gbl...> This is the code for the first page
> ---------
> <%
> Option Explicit
>
> Dim upl, NewFileName
>
> Set upl = Server.CreateObject("ASPSimpleUpload.Upload")
>
> If Len(upl.Form("CatImage")) > 0 Then
> NewFileName = "/images/" &
> upl.ExtractFileName(upl.Form("CatImage"))
> If upl.SaveToWeb("CatImage", NewFileName) Then
> Response.Write("File successfully written to disk.")
> Else
> Response.Write("There was an error saving the file to disk.")
> End If
> End If
> %>
>
> <html><head><title>ASP Simple Upload Example #1</title></head></title>
> <body>
> <form method="POST" action="upload.asp" enctype="multipart/form-data">
>
> Select a file to upload: <input type="file" name="CatImage" size="30">
> <input type="submit" name="submit" value="Upload Now">
> <p><input type="text" name="Category_Image" size="20"></p>
> </form>
> </body>
> </html>
> -------------
> but ican't not move the value to the second page because i'm using
> multipart/form-data
>
> any idea please ????
>
>
> A. J.
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
dave Guest
-
File Upload Problem
What are you setting the value of 'destination' to? The Coldfusion server first saves the file to a temporary directory, and then moves it to... -
File Upload Problem
i have the same problem. -
file upload problem
Hi, I think that the methos should be POST not GET Second, you may want to save the file first with, move_uploaded_file (see... -
File Upload Problem - nothing in /tmp
My PHP.ini file sets the following: file_uploads = on upload_max_filesize = 3M upload_tmp_dir = /tmp When I try and upload the file, it... -
[PHP] file upload problem
when you are uploading files via a form, you must use the POST method. Jim Lucas ----- Original Message ----- From: "Matthias Wulkow"...



Reply With Quote

