I tried to upload a 23MB file and got the error message "Invalid upload path". Uploading smaller files (50k) and creating directories works well.

Comments

johnfyoung’s picture

I'm seeing the same in 5.x-2.13. Looks like the AJAX call is made but the app returns back without a value for POST['webfmuploadpath'] and the file doesn't show up on the server.

johnfyoung’s picture

This behavior appears to be caused when trying to upload a file larger than both the upload_max_filesize and one half of post_max_size values in php.ini (see file_upload_max_size() in bootstrap.inc). If one tries to upload a bigger file, one gets an "invalid file path" message. And although the message is true, the real cause is a file that's too large for the server settings.

v8powerage’s picture

I have limit set to 50MB in php.ini but even though I'm unable to upload 6MB file (you can wait forever, only "Working, please wait…" message appears.

v8powerage’s picture

Priority: Normal » Critical
v8powerage’s picture

I solved my issue for my problem lied in ngix, changing limit in php didn't work, because ngix has default 1MB so if you're using ngix - change client_max_body_size in nginx.conf from 1MB to higher value (or ask your provider to do so).

nhck’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (fixed)