<input type=3D=E2=80=9Cfile=E2=80=9D name=3D"_FILEUPLOAD">
On 26 Mar 2020, at 10:10, talk@webdna.us wrote:Ken,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usStuart=E2=80=99s method works because =for a form input such as:<input type=3D=E2=80=9Cfile=E2=80=9D =name=3D=E2=80=9Cuploadedfile=E2=80=9D>
The =server will see this header, where the name of the file is supplied by ==E2=80=9Cfilename=E2=80=9D:Content-Disposition: form-data; name=3D"uploadedfile"; =filename=3D=E2=80=9Cmy.jpg=E2=80=9D
This entire line of text is received by WebDNA = in [formvariables] as the [name], while the binary file itself is =supplied in the [value].MDOn Mar =25, 2020, at 3:52 PM, talk@webdna.us wrote:Hi Ken---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usI have stripped this out =of a working file.[FORMVARIABLES =name=3D_FILEUPLOAD&exact=3DF][!]=[/!][HIDEIF [URL][value][/URL]=3D][!]=------------------------------------=[/!][SHOWIF [url][name][/url]^[url]filename=3D"[/url]][!]=[/!][TEXT]FULLFILENAME=3D[MIDDLE =StartAfter=3Dfilename=3D"&endbefore=3D"][name][/MIDDLE][/TEXT][!]=-------------- write the file to upload =dir --------------[/!][HIDEIF =[FULLFILENAME]=3D][!]=[/!][WRITEFILE =secure=3DF&file=3D[SHORTPATH]/[CompanyID]/[THISFILENAME]][value][/WRIT=EFILE][!]=[/!][/HIDEIF][!]=[/!][/SHOWIF][!]=------------------------------------=[/!][/HIDEIF][!][/!][/FORMVARIABLES]However because people do put all sorts =of characters in file names I always clean the name before using =it.On 26 Mar 2020, at 09:43, talk@webdna.us wrote:My =client is uploading a file via http. How do I write the
file= on my server with the same name as on the client's
computer?
In other words, is =there a reliable way to extract the
original file name =from the uploaded data?
Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Urgent/Emergency Phone: (228) 222-2917
Website, =Database, Network, and Communication Systems
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list talk@webdna.us
To unsubscribe, E-mail to: =talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug= Reporting: support@webdna.us
|
<input type=3D=E2=80=9Cfile=E2=80=9D name=3D"_FILEUPLOAD">
On 26 Mar 2020, at 10:10, talk@webdna.us wrote:Ken,---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usStuart=E2=80=99s method works because =for a form input such as:<input type=3D=E2=80=9Cfile=E2=80=9D =name=3D=E2=80=9Cuploadedfile=E2=80=9D>
The =server will see this header, where the name of the file is supplied by ==E2=80=9Cfilename=E2=80=9D:Content-Disposition: form-data; name=3D"uploadedfile"; =filename=3D=E2=80=9Cmy.jpg=E2=80=9D
This entire line of text is received by WebDNA = in [formvariables] as the [name], while the binary file itself is =supplied in the [value].MDOn Mar =25, 2020, at 3:52 PM, talk@webdna.us wrote:Hi Ken---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.usI have stripped this out =of a working file.[FORMVARIABLES =name=3D_FILEUPLOAD&exact=3DF][!]=------------------------------------=[/!][text]FULLFILENAME=3D[MIDDLE =StartAfter=3Dfilename=3D"&endbefore=3D"][name][/MIDDLE][/TEXT][!]=-------------- write the file to upload =dir --------------[/!][HIDEIF =[FULLFILENAME]=3D][!]=[/!][WRITEFILE =secure=3DF&file=3D[SHORTPATH]/[CompanyID]/[THISFILENAME]][value][/WRIT=EFILE][!]=[/!][/HIDEIF][!]=[/!][/SHOWIF][!]=------------------------------------=[/!][/HIDEIF][!][/!][/FORMVARIABLES]However because people do put all sorts =of characters in file names I always clean the name before using =it.On 26 Mar 2020, at 09:43, talk@webdna.us wrote:My =client is uploading a file via http. How do I write the
file= on my server with the same name as on the client's
computer?
In other words, is =there a reliable way to extract the
original file name =from the uploaded data?
Regards,
Kenneth Grome
WebDNA Solutions
http://www.webdnasolutions.com
Urgent/Emergency Phone: (228) 222-2917
Website, =Database, Network, and Communication Systems
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list talk@webdna.us
To unsubscribe, E-mail to: =talk-leave@webdna.us
archives: http://www.webdna.us/page.dna?numero=3D55
Bug= Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...