Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in plupluad when trying to upload 0 kb file #1087

Closed
orassayag opened this issue Jun 18, 2014 · 3 comments
Closed

Bug in plupluad when trying to upload 0 kb file #1087

orassayag opened this issue Jun 18, 2014 · 3 comments

Comments

@orassayag
Copy link

Hi
2 people reported to me that when they dragged a folder into the plupload dragging area, there was javascript error and the upload coludn't start. My guess is that there was a hidden file of 0kb in folder with 500-1000 images.
When browsing a 0kb file - no response from plupload, and the file is not in queue.
Any chance to fix it?
image

@orassayag
Copy link
Author

found the solution:
just add

                //check for file.size undefined and remove them from list
                $.each(uploader.files, function (i, file) {
                    if (file != undefined) {
                        if (file.size == undefined) {
                            $('#' + file.id + '.plupload_delete a').click();
                            updateList();
                        }
                    }
                });

in the end of updateList() method

@orassayag orassayag reopened this Jun 19, 2014
@kangwrite
Copy link

hello,
my requiredment is to upload a 0kb file,and I had the solution:
1、user debug mode
2、find moxie.js
3、the key code is num3423-3425

@jayarjo
Copy link
Contributor

jayarjo commented Aug 28, 2017

We've added new filter prevent_empty, that is on by default, but can be turned off if needed.

@jayarjo jayarjo closed this as completed Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants