> Does anyone have a JS script that will
> determine the length of file name for a
> file upload process?
> This is only for the document name, not
> the complete path and filename, so
> document.forms[0].fileupload.value will
> not work.
> just trying to find a script to determine the
> length of file name only prior to upload.
> TIA!
Well you have to start with that value...
if you're willing to resort to regular expressions in _javascript_, it
should be reasonably easy to get the file name from that point...
filename = document.forms.myform.fileupload.value;
filename = filename.replace(/^.*(\\|\/)(.*)$/,"$2");
or something to that effect.
hth
s. isaac dealey 954.927.5117
new epoch : isn't it time for a change?
add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477&DE=1
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- file upload validation Coldfusion
- Re: file upload validation Joe Rinehart
- Re: file upload validation S . Isaac Dealey
- RE: file upload validation Coldfusion
- RE: file upload validation S . Isaac Dealey
- RE: file upload validation info
- RE: file upload validation cfdev
- RE: file upload validation info