How to set file uploading size limit
Submitted by gvsoft on Wed, 10/28/2020 - 10:36
Forums:
I am Setting up H5P on my WordPress Website
I want to set upload a maximum of 2mb image only,
as I want to save uploading storage and time,
how can I set upload size limit, where to change
thank you.
Gv
Content types:
otacke
Wed, 10/28/2020 - 15:45
Permalink
Hi gvsoft!You can limit the
Hi gvsoft!
You can limit the file upload size in the PHP configuration of your server (max_upload_size). There's no H5P specific option.
Best,
Oliver
gvsoft
Mon, 11/02/2020 - 05:12
Permalink
Thank you, can u suggest the file name.
Thank you otacke,
can u suggest me "Which File I need to edit if want to set File Size Limit?"
I can't find the exact code location to set the file size limit, if it is found then we can change the code to set siz limit for uploading, I have done this in my other projects in javascript (jQuery).
regards,
Gv
otacke
Mon, 11/02/2020 - 19:01
Permalink
Hi!I can't give you the exact
Hi!
I can't give you the exact location of the PHP configuration file (usually php.ini), because it may vary depending on your webserver, but I can give you https://www.google.com/search?q=PHP+configuration+max_upload_size
Best,
Oliver
gvsoft
Mon, 11/02/2020 - 05:08
Permalink
Which File I need to edit if want to set File Size Limit?
It will be useful if added in H5P Configuration,
but there may be a chance to limit it through the uploading dialogue code, but I am unable to find the correct file,
I just want to know Which File I need to edit if want to set Uploading File Size Limit?
thank you
BV52
Mon, 11/02/2020 - 18:04
Permalink
Hi gvsoft,I think this page
Hi gvsoft,
I think this page may help.
-BV
gvsoft
Mon, 11/02/2020 - 18:28
Permalink
Thank you, but need to modify h5p code,
Thank you BV,
actually, I am using the same method as you suggested,
changed php.ini settings in cPanel
and modified "h5peditor-file.class.php" for showing an error message for uploading a large file.
as shown below, but I want to do this in the file selection dialogue box itself,
anyhow thank you,
regards,
Gv
timberjia
Wed, 01/12/2022 - 09:02
Permalink
How about Moodle
This page shows how to set in WordPress. How about Moodle. Is it same to " Create or Edit an existing PHP.INI file"?
BV52
Mon, 01/17/2022 - 17:33
Permalink
HI timberjia,Moodle should be
HI timberjia,
Moodle should be "simpler", you can check this documentation for the instructions.
-BV