0

Upload Multiple Files at Once

asked 2011-05-17 11:37:29 +0800

Hami gravatar image Hami
21

I have look many documentation about "Upload Multiple Files at Once", but all I can find is telling me: Repeatedly select files, and then upload once.
I wonder in ZK how can I select multiple files just one time( meaning one opration, without repeatedly ), and then upload those files at once.
Thank you. I really need to find out this answer.

delete flag offensive retag edit

15 Replies

Sort by ยป oldest newest

answered 2011-05-17 13:16:19 +0800

caclark gravatar image caclark
1753 2 5
http://clarktrips.intltwi...

You can't with the current HTML 4. It's not a ZK limitation. It's the HTML spec.

link publish delete flag offensive edit

answered 2012-03-07 17:59:16 +0800

ajaidka gravatar image ajaidka
196 4

it is there in HTML5 (ZK6), but ZK should have this support in 5.x versions also as JQ and other JS framworks does give such features.

link publish delete flag offensive edit

answered 2012-03-19 10:41:46 +0800

ajaidka gravatar image ajaidka
196 4

I am using JUploader instead of ZK uploader

link publish delete flag offensive edit

answered 2012-06-25 08:38:08 +0800

farhan gravatar image farhan
15

I am having the same issue, i want to select multiple files with one file selection dialog, not browse again and again to select each file,
Is there any way to do this?

link publish delete flag offensive edit

answered 2012-06-25 09:53:23 +0800

ajaidka gravatar image ajaidka
196 4

Farhan, Use ZK6+ , it supports html5 and multiple file upload in one go.

otherwise please use this http://blog.paxcel.net/blog/multiple-file-uploader-html5-and-java-applet/

link publish delete flag offensive edit

answered 2012-06-26 10:45:22 +0800

farhan gravatar image farhan
15

thanks ajadka , this should solve my issue, i dont see any difference in the API docs for Fileupload for zk5 and zk6, will check the code,
else will use the html5 one ,in your link .
many thinks

link publish delete flag offensive edit

answered 2012-06-26 17:17:16 +0800

ajaidka gravatar image ajaidka
196 4

Farhan

please use this:

<button label="Upload" upload="true,maxsize=-1,multiple=true,native"/>

Multiple=true means you will be able to select multiple files.
You will get an array of Media objects in th backend.


AJaidka

link publish delete flag offensive edit

answered 2012-06-28 06:27:30 +0800

Hami gravatar image Hami
21

ajaidka
"<button label="Upload" upload="true,maxsize=-1,multiple=true,native"/>", I had try as you said, but it doesn't work. It's in ZK6? By the way, thanks for your reply.

link publish delete flag offensive edit

answered 2012-06-28 08:03:33 +0800

ajaidka gravatar image ajaidka
196 4

yes ZK6

please refer:
http://books.zkoss.org/wiki/ZK_Component_Reference/Essential_Components/Button

public final Media[] getMedias() to get all uploaded files.


Thanks
Aashu

link publish delete flag offensive edit

answered 2012-06-28 08:26:58 +0800

farhan gravatar image farhan
15

thanks ajaidka , this make my life a lot easier!

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2011-05-17 11:37:29 +0800

Seen: 765 times

Last updated: Apr 03 '16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More