Could you use a form in your upload page that sets up a direct post to your imagecloud server, and sends along a unique identifier with that file? Then your imagecloud could post-back with the create file's metadata, and your Rails app could listen for that and update the record asynchronously.

Walter

On Nov 1, 2010, at 11:59 AM, Moritz Bruckner wrote:

Hey there,

okay once again :)

I have already coded an image uploading API using PHP. This API can be
accessed and used to upload images via cURL. For anyone interested, said
API is public and fully working.

Example: curl -F "@picture.jpg" http://api.imagecloud.us/?post=upload

-> Will return a JSON-encoded response including image URL etc.

To learn Rails, I want to create a graphical interface for this API. The
problem is, the hoster I want to host this Rails GUI on does not allow
the storing of files on the filesystem. Thus, putting the files in a
temp directory on the filesystem and then transferring them is NOT an
option.


Sorry if my posts are a bit complicated, I'm from Germany and not really
used to the english language.

Thanks!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails- [email protected]. To unsubscribe from this group, send email to [email protected] . For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en .


--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to