In 7.1.1 I added the tag @POSTARGFILENAME to obtain the posted file name from a 
type=file argument.



From: Wayne Irvine [mailto:[email protected]]
Sent: Monday, October 29, 2018 3:28 AM
To: [email protected]
Subject: TeraScript-Talk: File Upload



I’ve used basic multipart/form-data and the File action for ages.



I thought I’d spice it up a little with drag and drop and found this nice 
Jquery library.



https://blueimp.github.io/jQuery-File-Upload/



It supports things like max file size and a progress bar. I guess these are all 
clients side parameters.



But I am having trouble distinguishing between the file data and the file name. 
Previously I used some javascript that on submission would calculate a name 
from the file's field and populate another field to be submitted at the same 
time.



<INPUT NAME="Picture" TYPE=file>

<INPUT NAME="TheFileName" TYPE="HIDDEN">



<INPUT TYPE=button VALUE="Submit Image” 
onClick="document.TheForm.TheFileName.value=document.TheForm.TheFileName.value.substr(document.TheForm.TheFileName.value.lastIndexOf('\/')+1);
 document.TheForm.submit();">



I can’t do this with the system above.



Assuming a single field of type=file how do I populate the the File Action with 
both

File:

Data to write:



Wayne Irvine



Byteserve Pty Ltd
w: http://www.byteserve.com.au/
e: [email protected] <mailto:[email protected]>
p: +61 02 9960 6099
m: 0409 960 609
f: +61 02 9960 6088





  _____

To unsubscribe from this list, please send an email to [email protected] 
<mailto:[email protected]>  with "unsubscribe terascript-talk" in the 
body.




----------------------------------------

To unsubscribe from this list, please send an email to [email protected] 
with "unsubscribe terascript-talk" in the body.

Reply via email to