Re: [WebDNA] Is there a good file upload script available these days?
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102834
interpreted = N
texte = --Apple-Mail-7--773293036Content-Type: text/plain;charset=US-ASCII;format=flowedContent-Transfer-Encoding: 7bitI am using the "file upload" script from http://dev.webdna.us/downloads.htmlIt works well--Apple-Mail-7--773293036Content-Disposition: attachment;filename=upload.tplContent-Type: application/octet-stream;x-unix-mode=0600;name="upload.tpl"Content-Transfer-Encoding: quoted-printable=0D=0D=0DUpload=20an=20image:
=0D
=0D
=0D
=0D=0D[text]thename=3D[/text]=0D=[formvariables]=0D[showif=20[url][name][/url]^[url]"thename"[/url]]=0D=[text]thename=3D[value][/text]=0D[/showif]=0D[/formvariables]=0D=0D=[hideif=20[thename]=3D]=0DForm=20Variables:
=0D
=0D=Index | Name |
=0D[formvariables]=0D=[index] | [name] |
=0D[/formvariables]=0D=
=0D=0D
=0DNote=20that=20the=20form=20variables=20for=20a=20=multipart/form-data=20form=20submission=20are=20very=20different=0Dfrom=20=standard=20form=20variables.=20Since=20you=20will=20need=20access=20to=20=all=20the=20raw=20data=20in=20the=20form,=0Dthe=20"name"=20of=20the=20=form=20variables=20includes=20all=20the=20mime=20information=20that=20is=20=normally=20parsed=0Dout.=20Thus=20when=20you=20have=20an=20input=20field=20=like=20<name=3D"action"=20value=3D"upload">,=20that=20is=0Din=20a=20=multipart=20form,=20the=20name=20of=20the=20form=20variable=20is=20=something=20like=20this:=0D-Content-Disposition:=20form-data;=20=name=3D"action"-=20(as=20opposed=20to=20-action-).=0DThe=20value,=20=however,=20shows=20up=20as=20-upload-.=0DWhen=20inside=20a=20=[raw][formvariables][/raw]=20loop,=20you=20usually=20would=20do=20=something=20like=20this:=0D[raw][showif=20=[url][name][/url]^[url]"action"[/url]][/raw].=20Thus=20you=20cannot=20=easily=20access=20=0Da=20particular=20form=20variable=20without=20=looping=20through=20all=20of=20them=20and=20looking=20for=20the=20name=20==0Dcontained=20in=20the=20[raw][name][/raw]=20parameter.=0D
=0D=0D=[formvariables]=0D[showif=20[url][name][/url]^[url]"theFile"[/url]]=0D=[writefile=20file=3D[thename]&secure=3DF][value][/writefile]=0D[/showif]=0D=[/formvariables]=0D=0D
see=20picture=0D=[/hideif]=0D=0D=--Apple-Mail-7--773293036Content-Type: text/plain;charset=US-ASCII;format=flowedContent-Transfer-Encoding: 7bit- chrisOn Jun 25, 2009, at 17:42, Kenneth Grome wrote:> I'm looking for a file upload script I can drop in and use> almost immediately -- one that uses the same name for the> uploaded file as its name on the source computer.>> Does anyone know where I can find one?>> Sincerely,> Ken Grome>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/--Apple-Mail-7--773293036--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-7--773293036Content-Type: text/plain;charset=US-ASCII;format=flowedContent-Transfer-Encoding: 7bitI am using the "file upload" script from http://dev.webdna.us/downloads.htmlIt works well--Apple-Mail-7--773293036Content-Disposition: attachment;filename=upload.tplContent-Type: application/octet-stream;x-unix-mode=0600;name="upload.tpl"Content-Transfer-Encoding: quoted-printable=0D=0D=0DUpload=20an=20image:
=0D=0D
=0D
=0D=0D[text]thename=3D[/text]=0D=[formvariables]=0D[showif=20[url][name][/url]^[url]"thename"[/url]]=0D=[text]thename=3D[value][/text]=0D[/showif]=0D[/formvariables]=0D=0D=[hideif=20[thename]=3D]=0DForm=20Variables:
=0D=0D=0D
=0DNote=20that=20the=20form=20variables=20for=20a=20=multipart/form-data=20form=20submission=20are=20very=20different=0Dfrom=20=standard=20form=20variables.=20Since=20you=20will=20need=20access=20to=20=all=20the=20raw=20data=20in=20the=20form,=0Dthe=20"name"=20of=20the=20=form=20variables=20includes=20all=20the=20mime=20information=20that=20is=20=normally=20parsed=0Dout.=20Thus=20when=20you=20have=20an=20input=20field=20=like=20<name=3D"action"=20value=3D"upload">,=20that=20is=0Din=20a=20=multipart=20form,=20the=20name=20of=20the=20form=20variable=20is=20=something=20like=20this:=0D-Content-Disposition:=20form-data;=20=name=3D"action"-=20(as=20opposed=20to=20-action-).=0DThe=20value,=20=however,=20shows=20up=20as=20-upload-.=0DWhen=20inside=20a=20=[raw][formvariables][/raw]=20loop,=20you=20usually=20would=20do=20=something=20like=20this:=0D[raw][showif=20=[url][name][/url]^[url]"action"[/url]][/raw].=20Thus=20you=20cannot=20=easily=20access=20=0Da=20particular=20form=20variable=20without=20=looping=20through=20all=20of=20them=20and=20looking=20for=20the=20name=20==0Dcontained=20in=20the=20[raw][name][/raw]=20parameter.=0D
=0D=0D=[formvariables]=0D[showif=20[url][name][/url]^[url]"theFile"[/url]]=0D=[writefile=20file=3D[thename]&secure=3DF][value][/writefile]=0D[/showif]=0D=[/formvariables]=0D=0Dsee=20picture=0D=[/hideif]=0D=0D=--Apple-Mail-7--773293036Content-Type: text/plain;charset=US-ASCII;format=flowedContent-Transfer-Encoding: 7bit- chrisOn Jun 25, 2009, at 17:42, Kenneth Grome wrote:> I'm looking for a file upload script I can drop in and use> almost immediately -- one that uses the same name for the> uploaded file as its name on the source computer.>> Does anyone know where I can find one?>> Sincerely,> Ken Grome>>>> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> old archives: http://dev.webdna.us/TalkListArchive/--Apple-Mail-7--773293036--
christophe.billiottet@webdna.us
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Signal Raised Error (1997)
[LOOKUP] (1997)
displaying New products (using [date]) (1997)
removing commas from a preformatted number (2000)
New Problem (1997)
[WebDNA] Triggers not working (2011)
New WebDNA server (2007)
Wireless WebDNA available today! (2000)
Listserver problem (1997)
Generating unique SKU from [cart] - FIXED! (1997)
Re2: frames & carts (1997)
Cant get my own subtotal (2001)
[OT] Airport Network (2003)
[BoldWords] WebCat.acgib15Mac (1997)
Template Encryption (1998)
EIMS Problems (1997)
40,000+ items = mutiple dbs? (1999)
Close-to Comparison Code (1998)
Q on the best way to set up a security function so users can edit records (1999)
Search/sort in URL Was: GuestBook example (1997)