Panel: "The file could not be uploaded"

Hi!

I’m having problems uploading files bigger than 1mb through the panel. Somehow I think kirby is still picking up the old php.ini settings, is that possible? Even though I updated upload_max_filesize and post_max_size to 40mb and checked these new values were picked up correctly by the server through a phpinfo() page.

Anytime I tried I get back the error The file could not be uploaded.

Is it possible this is due php file size limits or am I overseeing something else?

I can upload other files and I made sure I can display all files in the panel once uploaded (I checked this by uploading files through ssh and they show up in the panel correctly).

What about memory_limit, max_execution_time, max_packet_size?

Logging out and in, clearing sessions, removing the media folder?

  • memory_limit = 128M
  • max_execution_time = 30
  • max_execution_input_time = 60
  • max_packet_size = i don’t have it in my php.ini but it looks like i should not need it if i set all others values?

are these values ok?

clearing the /session folder and the /media folder, logging in and out did not help.

Have you tried to upload a file via a simple PHP upload script (not using Kirby at all)?

I didn’t will try now and report back!

alright, i just forgot to setup the client_max_body_size in the nginx proxy configuration file, sigh.

:slight_smile:

2 Likes