Author Topic: Error uploading attachment / Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.  (Read 59 times)

spiros

  • Administrator
  • Hero Member
  • *****
  • Posts: 400435
  • Gender: Male
  • point d’amour
    • spiros.doikas
    • greektranslator
    • doikas
    • 102094522373850556729
    • lavagraph
    • Greek translator CV
Error uploading attachment / Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

PHP.ini
If your host allows you to alter the php.ini (Iee. via Cpanel/WHM) or a custom php.ini then find these variables and alter them

- Controls the maximum filesize of uploaded attachments (measured megabytes eg to set max 16mb attachment use 16M)
upload_max_filesize = 16M

- Controls the maximum size of posted contents (includes the post and all attachments) (measured megabytes eg to set max 16mb use 16M)
post_max_size = 16M

- Controls the maximum time allowed to upload - larger files may take a while to upload (measured in seconds eg 9000 = 150 minutes)
max_input_time = 9000

- Controls the maximum amount of time each script may spend parsing request data
max_execution_time = 9000

PHP may require to be restarted after changing these variables.

If you still having issues with the session expiring whilst uploading, try changing this variable in your php.ini

session.gc_maxlifetime = 86400
(measured in seconds eg 86400 = 24hrs
« Last Edit: 04 Oct, 2018, 12:42:18 by spiros »