jejacks0n/mercury — Issue #130: Image upload problem in a non-rails environment
Author: Hans123
Created: 2012-01-13 17:08:40+00:00
State: open

I like the concept of full page editing. It's very interesting for little CMS with simple online editing.

But now i have a question about the image upload process.

When i'm uploading an image, the process ends always with an error "Error: Unable to uplaod the file"

In the manual "Server Specification / images" you have specified what's going on when an image is uploaded to the server.
But i don't understand what i really have to do.

Is there a need to write a server-side script (e.g. php or perl ) to handle the Request from the AJAX POST-Call and give back the response in JSON-Format as you described in your doc.

{"image":{"url":"/system/images/1/original/imagename.jpg?1309022763"}}
{"url":"/system/images/1/original/imagename.jpg?1309022763"}

to read the image-data i can read the "REQUEST Payload" in the POST data.

Or is this not the right way to handle the image upload from mercury.