Upload file (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


wizard_oz -> Upload file (12/8/2005 16:23:30)

Hi,I have a problem to upload some files to a certain folder
I worked with the file that Spooky has on the top of the page (upload.zip) and at the upload_process.asp file there is sUploadPath which I define a folder, can I send the folder name from the upload.asp and get it on the upload_process.asp?
Thanks,Elen




rdouglass -> RE: Upload file (12/8/2005 18:09:02)

I think you can if you use the parameter in a querystring:

uploadprocess.asp?folder=myFolder

but I don't think you can use any hidden fields - it needs to be querystring.

..something like that?




wizard_oz -> RE: Upload file (12/9/2005 6:47:26)

Yes that what I was thinking of but it doesn't work, I tried to to write this uploadprocess.asp?folder=myFolder at the UPLOAD.ASP but how do I write the querystring at the upload_process.asp file?





rdouglass -> RE: Upload file (12/9/2005 8:38:53)

quote:

how do I write the querystring at the upload_process.asp file


It would be on the form where you select the file(s) to upload. Somehow you need to put it in the URL that the form tag posts to. Something like:

<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="uploadprocess.asp">

becomes:

<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="uploadprocess.asp?folder=myFolder">

See, you need to get it into the form first. That help any?




wizard_oz -> RE: Upload file (12/9/2005 9:26:31)

Thanks IT'S W O R K I N G :-)
Now can you tell me please how do I select multi files instead one by one?





rdouglass -> RE: Upload file (12/9/2005 9:47:14)

quote:

Now can you tell me please how do I select multi files instead one by one?


Oh - *that* question, eh? [:D]

I don't know if the script you're using will support multi-file uploads. Refer to any help that came with the script.

I use a different set since my script supports multi-file uploads. If you're interested, PM me with an email address and I'll send you a copy of what I use.




rdouglass -> RE: Upload file (12/9/2005 10:08:26)

Well since I've had more than 1 request, here is a link to the 2 files with scripts that I use for multi-file uploads.

http://www.clarkinsurance.com/multifileupload.zip

Just create as many <input type="file"... lines as you need emulating the lines in there already. Just remember to change the "fileX"

Hope it helps.




wizard_oz -> RE: Upload file (12/9/2005 10:24:07)

Thanks you again I didn't look at the script yet but I have a question, this mean that I have to choose everytime 1 file but there are lots of lines to browes? if this is the case, is there onther script that let me choose lots of file? something like choosing lots of file with the SHIFT key




rdouglass -> RE: Upload file (12/9/2005 10:25:17)

quote:

is there onther script that let me choose lots of file? something like choosing lots of file with the SHIFT key


Nothing that I'm aware of.




wizard_oz -> RE: Upload file (12/9/2005 10:34:36)

Ani idea how do I upload 400-600 or more files (jpg files)?




rdouglass -> RE: Upload file (12/9/2005 11:08:23)

quote:

Ani idea how do I upload 400-600 or more files (jpg files)?


FTP? [;)]

Is this something you're going to do on a regular basis? If so, you may be able to do something with FSO's (file scripting objects) to list all files in a folder and update a DB with that list.




wizard_oz -> RE: Upload file (12/9/2005 11:15:09)

I can't use the FTP, I need to use the ASP that I build, do you have an example to the FSO's you just talked about?I know I can use a directory with that and delete and more but how do I choose multi files?




rdouglass -> RE: Upload file (12/9/2005 11:26:50)

quote:

but how do I choose multi files?


I think you missed what I was trying to explain.

FSO's won't allow you to upload any more files. What FSO's will do is allow you to build a list of the files in a folder. Then you can add them to a db, display them on your page dynamically, etc. Won't help you with uploading but may be beneficial once the files are on the server.

Why is FTP not an option? If it's not, maybe you copy and paste thru FrontPage?




wizard_oz -> RE: Upload file (12/9/2005 12:11:41)

I can't use FTP becasue I am building this web site to a friend and I don't want him to look at the directory, I create a directory to him and he just have to choose those directory and upload some files.think of something like a photographer that need to upload lots of files to every person he is working for, how would you do it?




dpf -> RE: Upload file (12/9/2005 12:15:03)

quote:

think of something like a photographer that need to upload lots of files to every person he is working for, how would you do it?
if its 400 or so files like you say, I would tell the photographer hes got to learn ftp or pay me.




wizard_oz -> RE: Upload file (12/9/2005 12:48:04)

not a good idea because this is one example, and if you want to build few web sites to diffrent people then you are in a problem.Yahoo have something like that at http://photos.yahoo.com
and I would like to build something like that




rdouglass -> RE: Upload file (12/9/2005 13:06:17)

quote:

and I would like to build something like that


I'm not going to sign up to look at it but how many photos do they allow uploaded at 1 time?




wizard_oz -> RE: Upload file (12/9/2005 13:15:37)

as much as you want it's like you choose some files from the hard drive with the shift key




rdouglass -> RE: Upload file (12/9/2005 13:20:47)

quote:

it's like you choose some files from the hard drive with the shift key


Sounds to me like an ActiveX object. I know of no web-based form item that will do that - not even .NET forms.

Did you have to install something to get it to work?




wizard_oz -> RE: Upload file (12/9/2005 13:21:27)

yes




rdouglass -> RE: Upload file (12/9/2005 13:25:32)

quote:

yes


Well, I think that's your answer. It probably was an ActiveX component that did the work.

We don't do a lot of ActiveX development here. Sorry. [:(]

That is significantly different than building web pages.




wizard_oz -> RE: Upload file (12/9/2005 13:28:50)

ok thanks for your help




Spooky -> RE: Upload file (12/9/2005 14:25:43)

Check out the multiple upload example from motens code ( http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=8525&lngWId=4 ) however, I dont think its reasonable to expect more that 4-5 files.




rdouglass -> RE: Upload file (12/9/2005 14:30:46)

quote:

however, I dont think its reasonable to expect more that 4-5 files.


Spooky,

That's very similar to the example I posted. This person want's to upload 400+ files at the same time. [:o]




Spooky -> RE: Upload file (12/9/2005 14:40:13)

My connection and server wouldnt handle it for sure ;-)

Imagine a user selecting 200+ files from their 5megapixel camera? [sm=yikes.gif]




wizard_oz -> RE: Upload file (12/9/2005 19:04:34)

I am talking about very small files, something like 40kb




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
7.714844E-02