Open mrcivic opened 8 years ago
The error sounds like the request forwarded to the PHP does not have the all the request path parts.
The error is "invalid request" coming from FilesystemServices line 369, which is function "processPostFolder" checking right in beginning that there should be further items in path, and since there is none, it throws this error.
The upload request is like this: "/filesystem/[parent_id]/items", where parent_id is the upload target. Since it goes to "processPostFolder", it means it is POST request for a filesystem item that is identified as a folder. So, it at least gets the "parent_id" part, but it sounds like it would not get the "items" part at all.
The log does not reveal the request info, this could show some more info, but perhaps the nginx/url rewrite configuration would not keep all parts in the request?
For what it's worth, I was receiving the "File upload failed" error for files larger than 2MB. I followed the instructions here but it doesn't say where to find that php.ini file. A google search suggests that it's /etc/php5/apache2/php.ini that you want but I found that the one that worked was actually /etc/php/7.0/apache2/php.ini on Ubuntu, at least.
@OutsourcedGuru check https://github.com/sjarvela/kloudspeaker/wiki/Uploader#stream-upload
@GersonLazaro I got that to work by editing the php.ini file. My point was that there are two php.ini files on my Ubuntu, the actual one being the non-obvious.
Hi! I have an error, when I try to upload any files "File upload failed"
I saw this topic: https://github.com/sjarvela/kloudspeaker/issues/93
but adding the
"service-param": true,
andhad no effect to me.
Here is my nginx host conf
How can I fix it??
Thank in advance!