-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I am trying to upload file(s) to Amason S3 directly because of network traffic limitations. I need to know exact byte size of the file(s) to interrupt caching ( When uploading directly from an input stream, content length must be specified before data can be uploaded to Amazon S3. If not provided, the library will have to buffer the contents of the input stream in order to calculate it ).
Pure Javascript and html provides us that with <input type = "file" onchange="function(this)">
. How can I get length of file(s) before reading/converting inputstream. Or how can I use native input component to manage my uploads easily.
Thanks.
Well I don't know if this can be usefull :
<button label="Upload Image" upload="true,maxsize=300">
or here (line 243) at githun i qoute :
If you want to customize the handling of the file upload at
the client, you can specify a JavaScript class when calling this method:<button upload="foo.Upload"/>
Hope this helped you out.
Greetz Chill.
Well there is a solution at least.
Is there any sample usage for this solution. Actually I'm not good/experinced at JavaScript. This is why I am firstly trying to manage it by ZK. But if there is any sample to fit, I can handle it.
Thanks..
Yasin
Asked: 2014-02-25 10:27:09 +0800
Seen: 20 times
Last updated: Feb 26 '14
Any news on zk7 / bootstrap3 ?
Buttons, Tabs not working in zk7 inside Eclipse
Problem with tree and popup (probably a bug)
Portalchildren width is not set properly
How to include the customized Theme? [closed]
zk7 firefox 12 and the look and feel from the combobox
ZK 7: Bootstrap support for combobox/bandbox ?