Limitations that Pure PHP Upload can't handle
Question:
I'm uploading a big file and have set the filesize in Pure PHP Upload high enough, but i get an dns error when i'm trying to upload. Why isn't the file uploaded?
Answer:
There are some limitations that are set in the php configuration (PHP.INI). Here are some common pitfalls:
- The MAX_FILE_SIZE item cannot specify a file size greater than the file size that has been set in the upload_max_filesize ini-setting. The default is 2 Megabytes.
- If memory limit is enabled, larger memory_limit may be needed. Make sure to set memory_limit large enough.
- If max_execution_time is set too small, script execution may be exceeded the value. Make sure to set max_execution_time large enough.
- If post_max_size set too small, large files cannot be uploaded. Make sure to set post_max_size large enough.
- Please note that the CERN httpd seems to strip off everything starting at the first whitespace in the content-type mime header it gets from the client. As long as this is the case, CERN httpd will not support the file upload feature.
- Due to the large amount of directory listing styles we cannot guarantee that files with exotic names (like containing spaces) are handled properly.
Comments
Be the first to write a comment
You must me logged in to write a comment.