[GH-ISSUE #75] Suggestion to add parameters for Dropzone and max upload size #55

Closed
opened 2026-03-02 15:55:21 +03:00 by kerem · 2 comments
Owner

Originally created by @smefa on GitHub (Oct 23, 2018).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/75

Perhaps it would be nice to have the maxFilesize and timeout options for Dropzone already in the script. I had to do some searching before I understood how the max upload size worked.

    Dropzone.options.fileUploader = {
		maxFilesize: 500,
		timeout: 600000,
        init: function () {
            this.on("sending", function (file) {
                let _path = (file.fullPath) ? file.fullPath : file.name;
                document.getElementById("fullpath").value = _path
            }).on("success", function (res) {
                console.log('Upload Status >> ', res.status);
            })
        }
    }
Originally created by @smefa on GitHub (Oct 23, 2018). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/75 Perhaps it would be nice to have the maxFilesize and timeout options for Dropzone already in the script. I had to do some searching before I understood how the max upload size worked. Dropzone.options.fileUploader = { maxFilesize: 500, timeout: 600000, init: function () { this.on("sending", function (file) { let _path = (file.fullPath) ? file.fullPath : file.name; document.getElementById("fullpath").value = _path }).on("success", function (res) { console.log('Upload Status >> ', res.status); }) } }
kerem 2026-03-02 15:55:21 +03:00
Author
Owner

@smefa commented on GitHub (Oct 23, 2018):

Dropzone 5.5 is also available
https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.0/min/dropzone.min.js

<!-- gh-comment-id:432201448 --> @smefa commented on GitHub (Oct 23, 2018): Dropzone 5.5 is also available https://cdnjs.cloudflare.com/ajax/libs/dropzone/5.5.0/min/dropzone.min.js
Author
Owner

@prasathmani commented on GitHub (Dec 13, 2018):

Timeout and new version of dropzone cdn url are updated. maxFilesize will depend upon server max upload file size, so maxFilesize not added in dropzone configuration

<!-- gh-comment-id:447074441 --> @prasathmani commented on GitHub (Dec 13, 2018): Timeout and new version of dropzone cdn url are updated. maxFilesize will depend upon server max upload file size, so maxFilesize not added in dropzone configuration
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#55
No description provided.