Support » Fixing WordPress » Upload large files – timeout

Viewing 2 replies - 1 through 2 (of 2 total)
  • if WP uses PHP to handle form uploads, then there may be a limit set in the PHP.INI file of some number of MB. Normal installations of PHP has this set at 8MB I believe. Your hosting provider should be able to increase this for larger files for you.

    For those of you with shell access to your WordPress installation, there’s another option.

    1. Create a small file of the same name and type as the one you want to upload.
    2. Upload the small file using WordPress as you normally would.
    3. Upload the original (large) file using a non-WordPress method so that you don’t run into the PHP limit. (For instance, you can use the scp command.)
    4. Navigate to the wp-content/uploads directory of your blog and locate the file you uploaded.
    5. Copy the large file over the smaller file’s location.

    My hosting provider refused to increase the PHP limit on their shared server, so I had to use this trick. Worked like charm.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Upload large files – timeout’ is closed to new replies.