Jump to content

File Uploads Not Finishing


Warran
 Share

Recommended Posts

Hi

I am having an issue uploading files via 'Files' fields in my templates. Progress goes to 100% but then goes no further i.e. to the point where you would add the description for the file just uploaded. Attached is a screenshot showing where it gets stuck.

Works ok with very small file sizes but not with larger files such as the 8MB one in the screenshot. The ini file settings are:

memory_limit 128M
post_max_size 32M
upload_max_filesize 32M
max_input_time 360

Hosting provider is adamant it's a CMS issue.

Any help would be appreciated.

Thanks

Screenshot 2025-02-20 at 10.42.05.png

Link to comment
Share on other sites

Check if there is an error on the console, this has happened to me when there is a javascript error parsing the console, sometimes happening when a PHP warning or errors gets attached to the response of the ajax file upload.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

You're on the right track! Adjusting PHP settings should help.

  Reveal hidden contents

 

Edited by JamesFletcher
Link to comment
Share on other sites

Update: 

I've uncovered the following error:

session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/cpanel/php/sessions/ea-php82, handler: write) in <b>Unknown</b>on line <b>0</b>

Any thoughts?

 

Link to comment
Share on other sites

Hi

Still can't get to the bottom of this problem so any further insight would be very much appreciated.

I can see the uploaded file arriving in the assets/files folder but the upload isn't registering in the database for the page and field.

This is the error in the log: TypeError: Exception::__construct(): Argument #2 ($code) must be of type int, string given in /data04/domain/public_html/wire/core/FieldtypeMulti.php:254. 

However, I'm wondering if this a red herring as the server delivers a non-integer error code which is triggering the error on FieldtypeMulti.php:254.

So, could this be a problem with how MySQL is configured on the server? There is a 2006 mysql error code which I think relates to a lost connection. 

Thanks

Link to comment
Share on other sites

  On 4/3/2025 at 2:15 PM, Warran said:

I've uncovered the following error:

session_write_close(): Failed to write session data using user defined save handler. (session.save_path: /var/cpanel/php/sessions/ea-php82, handler: write) in <b>Unknown</b>on line <b>0</b>

Expand  

For this error, can you try changing your session handler?? In case you are using the default, try SessionHandlerDB?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...