[Zope] Sample for uploading multiple files through DHTML
Mon, 29 Oct 2001 12:27:22 +0800
This is a multi-part message in MIME format.
I am much benefit from the "Local File System" Product and
I noticed that "upload file" through the browser is a feature appeared in
many other products too. Sometimes, upload multiple files at once is
Dut to the limitation of browser, upload a folder or selected several files
is not achievable.
I have a work around for "upload several selectef files" by DHTML
It's just a sample for people who wants a hint for doing multiple files
The scenario is to choose files one-by-one.
Please refer to the attachment. Just save it and drop into the browser (IE).
Then try to choose a file, after that another file-field will appear for
Maybe someone had done sort of this before. I have no idea.
But if uploading multiple files is a feature there when we need it.
It's would be good.
This is the example for doing multiple file uploading.
This is not cross-browser. It works only or IE.
I believe that just a minor modifition is required for it to work on =
of Netscape-like DOM. ( I don't have a NS installation now, sorry)
Hint for people concerns about cross-browser: Netscape doesn't use =
Oct 29, 2001
if (widget.value=3D=3D'') return null
obj.innerHTML=3D'<input type=3Dfile name=3Dfile'+file_count+' =
onchange=3D"addFileField(this)" size=3D20><div =
<form method=3Dpost enctype=3Dmultipart/formdata=20
action=3D"use <dtml-var REQUEST> to see the result">
<input type=3Dfile name=3Dfile1 size=3D20 =
<input type=3Dhidden name=3Dfile_count value=3D0>