bestprotop / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Check file size before uploading #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How can we find the file size of uploaded file. So that we can prevent the user 
to upload big file (more then 3GB)

!!!IMPORTANT!!!
If you're reporting an issue regarding issues uploading files, please check
the following:
1. Have you tried uploading a single file without using the plugin? Makes
sure this works before submitting a bug report
2. Make sure your form has method=POST and enctype=multipart/form-data
3. Are you using valid (x)HTML? Invalid markup can stop the form from being
submitted altogether
4. Are you using the correct element names as required/expected by your
server-side script?

OTHERWISE, please remove this message and complete the form below:

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the plugin/jQuery are you using?
PLUGIN VERSION:
JQUERY VERSION:

On what browser(s) or operating system?
BROWSER(S):

Please provide a link to where the problem can be observed:
URL:

Feel free to provide any additional information below.

Original issue reported on code.google.com by savehum...@gmail.com on 4 Apr 2013 at 3:10

GoogleCodeExporter commented 9 years ago
This is not something that can be done by Javascript.
It has to be done server-side.

Original comment by diego.a...@gmail.com on 4 Apr 2013 at 9:48

GoogleCodeExporter commented 9 years ago
bt I have to check file at client side, If user upload the file which has size 
greater then the size mentioned in web.config, Niether client side nor sever 
side will fire.

So i have to check the file size while uploading

Please do the needful

Original comment by savehum...@gmail.com on 5 Apr 2013 at 4:22

GoogleCodeExporter commented 9 years ago
Have you Google'd it?
https://www.google.co.uk/search?q=how+to+check+file+size+before+uploading

Here's one way you can do this:
http://jquerybyexample.blogspot.com/2012/03/how-to-check-file-size-before-upload
ing.html

** SERVER-SIDE VALIDATION IS ALWAYS REQUIRED ***
Please do your own research to create the server-side code you require in the 
language of your choice.

Original comment by diego.a...@gmail.com on 5 Apr 2013 at 10:56

GoogleCodeExporter commented 9 years ago
I strongly recommended that you use one of these solutions instead:
- Uploadify
- SWFUpload

Original comment by diego.a...@gmail.com on 5 Apr 2013 at 10:57