Active
Project:
Services
Version:
7.x-3.12
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Nov 2015 at 11:03 UTC
Updated:
6 Nov 2015 at 12:27 UTC
Jump to comment: Most recent
Hi,
I'm using http://jsfiddle.net/kartagis/z72nvLz7/ to create a file on my server. However I'm getting Missing data the file upload can not be completed. Looking at the code below, I am fairly certain that neither $file nor $filename are empty (please see the below screenshot). So, what am I doing wrong?

The code:
if (!isset($file['file']) || empty($file['filename'])) {
return services_error(t("Missing data the file upload can not be completed"), 500);
}
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2015-11-06 13:56:58.png | 81.42 KB | kartagis |
Comments
Comment #2
kartagisUPDATE: The very same code with just the URL of another server, works very well.