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);
}
CommentFileSizeAuthor
Screenshot from 2015-11-06 13:56:58.png81.42 KBkartagis

Comments

Kartagis created an issue.

kartagis’s picture

UPDATE: The very same code with just the URL of another server, works very well.