Roundcube Community Forum

Release Support => Requests => Topic started by: jingo on December 03, 2009, 06:44:40 AM

Title: Upload multiple files at once
Post by: jingo on December 03, 2009, 06:44:40 AM
My users request a posibility to upload more than one file at once for attachments.

Right now they must select one file, push upload, wait, select next file etc.etc.

They want to select multiple files, push attach/upload, wait, send message.


How can this be made posible?
Title: Upload multiple files at once
Post by: Julius Caesar on December 04, 2009, 04:12:18 AM
PHP does not allow the selection of multiple files. A work-around is to archive the files into a .zip or .rar file and select that file.
Title: Upload multiple files at once
Post by: jingo on December 04, 2009, 04:28:00 AM
PHP can't do it ??? Sure ?

I was thinking about solutions like:
PHP Multiple files upload (http://www.phpeasystep.com/workshopview.php?id=2)

or
Upload multiple files with a single file element | Stickblog (http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/)

or this great aproach:
FancyUpload Photo Queue Showcase (http://www.hektorparis.com/hp-lab/fancyupload/showcase/photoqueue/)
descripted here:
Upload Multiple Images at Once using PHP (http://www.ajaxlines.com/ajax/stuff/article/upload_multiple_images_at_once_using_php.php)

What do you think?
could this be posible in RC?

Could it be done in a plugin, or does it need core ajustments?
Title: Upload multiple files at once
Post by: Julius Caesar on December 04, 2009, 05:05:43 AM
Quote from: jingo;23640PHP can't do it ??? Sure ?

I'm sure. PHP can't select multiple files in one selection box.

Quote from: jingo;23640I was thinking about solutions like:
PHP Multiple files upload (http://www.phpeasystep.com/workshopview.php?id=2)

or
Upload multiple files with a single file element | Stickblog (http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/)

or this great aproach:
FancyUpload Photo Queue Showcase (http://www.hektorparis.com/hp-lab/fancyupload/showcase/photoqueue/)
descripted here:
Upload Multiple Images at Once using PHP (http://www.ajaxlines.com/ajax/stuff/article/upload_multiple_images_at_once_using_php.php)

What do you think? Could this be posible in RC?

You want to select the files prior to uploading. You've showed already some examples (which I already had found too) so I don't think that this can be a problem. However I'm not a coder.

Quote from: jingo;23640Could it be done in a plugin, or does it need core adjustments?

Like I said I'm not a coder, so I can't tell you this.
Title: Upload multiple files at once
Post by: jingo on December 04, 2009, 05:12:54 AM
Ok. Thank you.

Anyway the examples show that PHP CAN handle more than one file.

It is not PHP that shows the dialog box, its the javascript or flashscript.

I think the multiselect dialog is really nice.

But selecting one file at a time is okay, as long as the user must only push "Upload" once.
Title: Upload multiple files at once
Post by: SKaero on December 04, 2009, 06:47:24 AM
I think that it could be done with a plugin however I would want to get this fix before upload more then one attachment http://trac.roundcube.net/ticket/1484660
Title: Upload multiple files at once
Post by: jingo on December 04, 2009, 07:02:31 AM
Wow, I wasn't aware of that issue!

I am just moving my users to Roundcube from Squirrelmail. That issue might bring trouble.

Anyway the request is valid, and will improve the user experience.
Title: Upload multiple files at once
Post by: SKaero on December 04, 2009, 07:14:04 AM
Its can be very limiting if your on shared hosting but its not as bad on a vps or dedicated server. Try a file and see how well it sends then you will know if it will be a big problem.
Title: Upload multiple files at once
Post by: osos on April 24, 2010, 10:31:13 AM
Se this bug on the topic. #1486039 (Upload progress bar in compose window) ? Roundcube Webmail (http://trac.roundcube.net/ticket/1486039)

http://swfupload.org/ might provide for the upload functionality in the future of roundcube.