[GH-ISSUE #96] Max file size? #67

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

Originally created by @TheXisco on GitHub (Dec 7, 2018).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/96

Has Tiny File Manager a size limit? I ask this because I can not upload files whose size is 3mb or higher.

Thanks.

Originally created by @TheXisco on GitHub (Dec 7, 2018). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/96 Has Tiny File Manager a size limit? I ask this because I can not upload files whose size is 3mb or higher. Thanks.
kerem 2026-03-02 15:55:27 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@gbrault commented on GitHub (Dec 8, 2018):

have a look to the php.ini file. You need to fix two values
max_upload_size and max_post_size (not sure of the exact naming pls check)
put them as you want
php.ini location depends on your os context usually /etc/php/... directory
You may also get this limit in your web server (depends on apache2 or nginx or the like)

<!-- gh-comment-id:445446628 --> @gbrault commented on GitHub (Dec 8, 2018): have a look to the php.ini file. You need to fix two values max_upload_size and max_post_size (not sure of the exact naming pls check) put them as you want php.ini location depends on your os context usually /etc/php/... directory You may also get this limit in your web server (depends on apache2 or nginx or the like)
Author
Owner

@gbrault commented on GitHub (Dec 11, 2018):

in fact see the 'bug' I opened with dropzone.js default timeout to 30 seconds as well

<!-- gh-comment-id:446247315 --> @gbrault commented on GitHub (Dec 11, 2018): in fact see the 'bug' I opened with dropzone.js default timeout to 30 seconds as well
Author
Owner

@rkhyd commented on GitHub (Jan 16, 2019):

changing the upload file size in php.ini has no effect. The maximum file size is set to 256MiB even after updating the php.ini and restarting apache. Where can i change this?

<!-- gh-comment-id:454709880 --> @rkhyd commented on GitHub (Jan 16, 2019): changing the upload file size in php.ini has no effect. The maximum file size is set to 256MiB even after updating the php.ini and restarting apache. Where can i change this?
Author
Owner

@damianmiles commented on GitHub (Jan 16, 2019):

Yes I found the same issue, even we modify what you say, it's still restricted

<!-- gh-comment-id:454719882 --> @damianmiles commented on GitHub (Jan 16, 2019): Yes I found the same issue, even we modify what you say, it's still restricted
Author
Owner

@gbrault commented on GitHub (Jan 16, 2019):

check you have dropzone setup
you should add timeout (in msec)
Dropzone.options.fileUploader = {
timeout:120000, // 2 minutes
init: function () {...
within fm.php

<!-- gh-comment-id:454862367 --> @gbrault commented on GitHub (Jan 16, 2019): check you have dropzone setup you should add timeout (in msec) Dropzone.options.fileUploader = { timeout:120000, // 2 minutes init: function () {... within fm.php
Author
Owner

@carlsue commented on GitHub (Jan 23, 2019):

Yes I found the same issue, even we modify what you say, it's still restricted

<!-- gh-comment-id:456760858 --> @carlsue commented on GitHub (Jan 23, 2019): Yes I found the same issue, even we modify what you say, it's still restricted
Author
Owner

@fn-ix commented on GitHub (Feb 4, 2019):

Have also encountered the 256MiB limit...

<!-- gh-comment-id:460357021 --> @fn-ix commented on GitHub (Feb 4, 2019): Have also encountered the 256MiB limit...
Author
Owner

@jfg commented on GitHub (Feb 8, 2019):

Hi, i have the same problem.
I have change parameters in my Plesk but no change...
Thanks for your help.

<!-- gh-comment-id:461872990 --> @jfg commented on GitHub (Feb 8, 2019): Hi, i have the same problem. I have change parameters in my Plesk but no change... Thanks for your help.
Author
Owner

@dausruddin commented on GitHub (Feb 23, 2019):

Found the problem.
We should edit dropzone configuration in here

check this configuration example on https://www.dropzonejs.com/
What you are looking for is maxFilesize.

<!-- gh-comment-id:466671527 --> @dausruddin commented on GitHub (Feb 23, 2019): Found the problem. We should edit dropzone configuration [in here](https://github.com/prasathmani/tinyfilemanager/blob/1b9e0f5e7672353c9018b5c0d56f9a55ab247faa/tinyfilemanager.php#L936) check this configuration example on [https://www.dropzonejs.com/](https://www.dropzonejs.com/#configuration) What you are looking for is `maxFilesize`.
Author
Owner

@Tun-0 commented on GitHub (Feb 25, 2019):

To upload more than 256mib you should change memory_limit in php.ini for more info visit https://www.dokuwiki.org/faq:uploadsize

<!-- gh-comment-id:467091617 --> @Tun-0 commented on GitHub (Feb 25, 2019): To upload more than 256mib you should change memory_limit in php.ini for more info visit https://www.dokuwiki.org/faq:uploadsize
Author
Owner

@dausruddin commented on GitHub (Feb 25, 2019):

@MRDarck tinyfilemanager also limiting upload size in the front-end. I explained it in the reply above you.

Need to set maxFilesize in dropzonejs configuration or you will not be able to upload file as big as what you set in php.ini

<!-- gh-comment-id:467099117 --> @dausruddin commented on GitHub (Feb 25, 2019): @MRDarck tinyfilemanager also limiting upload size in the front-end. I explained it in the reply above you. Need to set `maxFilesize` in dropzonejs configuration or you will not be able to upload file as big as what you set in php.ini
Author
Owner

@prasathmani commented on GitHub (Feb 28, 2019):

Updated maxFilesize has 2GB now.

<!-- gh-comment-id:468215189 --> @prasathmani commented on GitHub (Feb 28, 2019): Updated `maxFilesize` has 2GB now.
Author
Owner

@carlsue commented on GitHub (Mar 1, 2019):

Updated maxFilesize has 2GB now.

why not let us to modify freely?

<!-- gh-comment-id:468531912 --> @carlsue commented on GitHub (Mar 1, 2019): > Updated maxFilesize has 2GB now. why not let us to modify freely?
Author
Owner

@prasathmani commented on GitHub (Mar 3, 2019):

@carlsue new config flag is added now for MAX_UPLOAD_SIZE

<!-- gh-comment-id:469007543 --> @prasathmani commented on GitHub (Mar 3, 2019): @carlsue new config flag is added now for `MAX_UPLOAD_SIZE`
Author
Owner

@carlsue commented on GitHub (Mar 13, 2019):

批注 2019-03-12 223030

get another error

<!-- gh-comment-id:472309207 --> @carlsue commented on GitHub (Mar 13, 2019): <img width="817" alt="批注 2019-03-12 223030" src="https://user-images.githubusercontent.com/17507066/54260482-01489d80-45a4-11e9-8f7b-1da200098325.png"> get another error
Author
Owner

@prasathmani commented on GitHub (Mar 13, 2019):

increase your MAX_UPLOAD_SIZE in configuration and then try

<!-- gh-comment-id:472311732 --> @prasathmani commented on GitHub (Mar 13, 2019): increase your `MAX_UPLOAD_SIZE` in configuration and then try
Author
Owner

@carlsue commented on GitHub (Mar 13, 2019):

increase your MAX_UPLOAD_SIZE in configuration and then try

TIM截图20190313163929

my file is 2.8GB

<!-- gh-comment-id:472329093 --> @carlsue commented on GitHub (Mar 13, 2019): > increase your `MAX_UPLOAD_SIZE` in configuration and then try ![TIM截图20190313163929](https://user-images.githubusercontent.com/17507066/54264672-96509400-45ae-11e9-83d0-b844e2f7276a.jpg) my file is 2.8GB
Author
Owner

@prasathmani commented on GitHub (Mar 13, 2019):

Server responded with 0 code #701

<!-- gh-comment-id:472342214 --> @prasathmani commented on GitHub (Mar 13, 2019): [Server responded with 0 code #701](https://github.com/enyo/dropzone/issues/701)
Author
Owner

@mahyard commented on GitHub (Nov 14, 2021):

@prasathmani
Another hardcoded value that will cause an "Error: Server Timeout" message is located here.
What do you think about making it configurable as well?

<!-- gh-comment-id:968299753 --> @mahyard commented on GitHub (Nov 14, 2021): @prasathmani Another hardcoded value that will cause an "Error: Server Timeout" message is located [here](https://github.com/prasathmani/tinyfilemanager/blob/2046bbde72ed76af0cfdcae082de629bcc4b44c7/tinyfilemanager.php#L1227). What do you think about making it configurable as well?
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#67
No description provided.