Hello, I already read several topics here on the forum on this subject and I did all the procedures, even so, when I send a file, give it a limit.I configured my php.ini in upload_max_filesize to 10M the file I am uploading is only 3M, even so it gives an error.At the PhpMaker no “Max file size” I put: 10485760At the “Edit Tag/Max file size(bytes)” I put: 10485760I did a test creating an upload.php file outside of PhpMaker and I can send it normal, but with PhpMaker generated code doesn’t work.Is there any configuration other than these in PhpMaker that I should do?
From the help file (PHP Settings > File Upload):Notes File upload also depends on your PHP, web server and database configuration:
- PHP -Check your php.ini, related configurations are file_uploads, upload_max_filesize, upload_tmp_dir, post_max_size, max_input_time, memory_limit, and max_execution_time directives in php.ini.
- Apache -If you use Apache web server, check LimitRequestBody directive.
- MySQL -Check the max_allowed_packet setting in your MySQL configuration.
The error is:
The uploaded file exceeds the maximum size allowed in php.iniI created an upload.php file to upload the file and it worked, but with the generated codes from PhpMaker it doesn’t work, give the error above. so there is no error in the server configuration, there must be something that I am missing in Phpmaker.
This has nothing to do with phpmaker.Check upload_max_filesize, post_max_size again.Did you restart your web server after the changes?If you’re using Linux and depending on version, there will be 2 php.ini config files, for example in leap 15.1 there is a /cli/php.ini and /apache2/php.ini file ensure you updated accordingly.
Is like this:upload_max_filesize = 50M
post_max_size again = 50MI created a file to send files and it worked, but with the files generated by PhpMaker it doesn’t work.
Almeida 3A wrote:
The error is:
The uploaded file exceeds the maximum size allowed in php.iniI cannot find such error message in PHPMaker template, it seems that the error is from PHP processor. You may set up log_errors and error_log in php.ini and check the error log for more info:
https://www.php.net/manual/en/errorfunc.configuration.php#ini.log-errors
what did you set the values in the phpmaker:[General Options]-[File Upload] TAB
field: max file size (bytes)and the same with in the Table - Field settings for the field you specified as the upload document field [File Upload] items.