[Bug 2729] FR Uploads: Multiple Files upload

[email protected]
Newsgroups gmane.comp.cms.xaraya.bugs
Message-ID <[email protected]>
http://bugs.xaraya.com/show_bug.cgi?id=2729





------- Comment #4 from [email protected]  2009-01-31 23:08 GMT -------
Created an attachment (id=4078)
 --> (http://bugs.xaraya.com/attachment.cgi?id=4078&action=view)
Enable multiple uploads - process_files.php now handles arrays of files

The patch allows the upload module to handle multiple uploads at once. This
change is only visible if your input form has more than one input type=file tag
for the same name[].

To have more than one input file=file tag you could create the following file
YOURTHEME/modules/uploads/includes/attach_upload.xt
and multiply this line:
<input type="file" class="multi" name="#$id#_attach_upload[]"
id="#$id#_attach_upload_id" />

Suggested Use - Hooked uploads to articles:
The updated template files use the default class "multi" to work out of the box
with the multiple-file-upload jquery plugin: 
http://www.fyneworks.com/jquery/multiple-file-upload/

I suggest including the javascript in these template files:
YOURTHEME/modules/articles/admin-new.xt
YOURTHEME/modules/articles/admin-modify.xt

If under the validation for the hooked upload property multiple is enabled, the
above plugin will add new upload boxes on the fly.


-- 
Configure bugmail: http://bugs.xaraya.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

---- ** IMPORTANT ** READ BELOW ** ----
[Clip Me Start]
--------------------------------------------------------------------------
If you wish, you can reply to this message directly **however**, make sure
to use the "Reply To All" feature of your client **and** ensure that the 
bug specifier is in the subject (ie: [Bug ####]). Also, you _MUST_ have 
you're From or Reply-To address set to the same address you use to log
into your bugzilla account or your reply will not be attached to the bug.
--------------------------------------------------------------------------
[Clip Me End]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.