Open bs-thomas opened 7 years ago
The issue you are reporting appears to be unrelated to the drag and drop feature. You're simply sending files to the uploader via addFiles
correct? Is that where the issue occurs? Is addFiles
allowing multiple files to be sent through?
Looks like the fact that you are using a non-UI instance is related. Can you post the logs after attempting to drop 2 files with debug: true
set?
Thanks for your prompt response Ray.
Yes that's correct, it simply directs to addFiles(). This is an example I got from the fineuploader website I believe.
Here is the log I just did now according to your request:
app.js:1126 processingDroppedFiles
all.fine-uploader.js:163 Grabbed 2 dropped files.
app.js:1130 processingDroppedFilesComplete
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Received 2 files.
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Attempting to validate image.
app.js:1105 onSubmit 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending simple upload request for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Submitting S3 signature request for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending POST request for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Attempting to validate image.
app.js:1105 onSubmit 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending simple upload request for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Submitting S3 signature request for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending POST request for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending upload request for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending upload request for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Received response status 200 with body:
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Simple upload request succeeded for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Submitting upload success request/notification for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending POST request for 0
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Received response status 200 with body:
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Simple upload request succeeded for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Submitting upload success request/notification for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Sending POST request for 1
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Received the following response body to an upload success request for id 1: {"fileId":46}
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Upload success was acknowledged by the server.
app.js:1073 onComplete 1 bbb.jpg Object {success: true, fileId: 46} XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, responseURL: "https://beamstyle-web-localhost.s3.amazonaws.com/"…}
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Received the following response body to an upload success request for id 0: {"fileId":45}
all.fine-uploader.js:163 [Fine Uploader 5.11.10] Upload success was acknowledged by the server.
app.js:1073 onComplete 0 aaa.jpg Object {success: true, fileId: 45} XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, responseURL: "https://beamstyle-web-localhost.s3.amazonaws.com/"…}
Thank you again!
Until I get a chance to look into this further, i would suggest using the itemLimit validation option described at http://docs.fineuploader.com/branch/master/api/options.html#validation.itemLimit.
...you can also simply reject the dropped files yourself before calling addFiles if more than one file is dropped. In fact there are a number of ways to deal with this. I consider this to be a low priority bug as a result, so I'm not sure when I will get around to fixing. However a pull request that fixes this and includes unit tests will push this through quicker.
Got this same problem, +1 on the issue.
Type of issue [REQUIRED]
bug
Uploader type [REQUIRED]
S3 - qq.s3.FineUploaderBasic + qq.DragAndDrop
Bug details [DELETE EVERYTHING IN THIS SECTION IF THIS IS A FEATURE REQUEST]
Fine Uploader version [REQUIRED]
5.11.10
Browsers where the bug is reproducible [REQUIRED]
Chrome
Operating systems where the bug is reproducible [REQUIRED]
Windows 10
Exact steps required to reproduce the issue [REQUIRED]
For example:
All of your Fine Uploader initialization JavaScript code [REQUIRED]
{simply copy and paste the JS used to control Fine Uploader browsers-ide}
Your Fine Uploader template markup (if using Fine Uploader UI and the issue is UI-related)
{simply copy and paste your template markup}
Detailed explanation of the problem [REQUIRED]
{please describe the bug here}
When I'm using the s3 core (not the UI version), and set the option "multiple: false", drag and dropping 2 files at once still seem to pass through, and get uploaded successfully. I expect to:
I did notice that "clicking the button" disables multiple select, which means this seems to be only happening in the drag and drop feature.
Your help is appreciated. Thank you in advance!
Cheers, Thomas