Archived from the Transloadit support forum. Originally posted on November 3, 2010; details may be outdated, see our docs for current behavior. Original thread
I need to store the reference to the uploaded files in my database in order to be able to query the file later based on its metadata (uploaded date, tag, category…) The pictures will be uploaded from an iphone, but I would like the DB server to be notified when there is a new file.
Any idea how to perform this?
Hey Stan,
I believe what you are looking for is our notify_url parameter:
http://transloadit.com/docs/assemblies
Let em know if that helps or if I can provide more information!
--fg
That does look like a pretty cool feature.
Do I know which files have been uploaded? Or the notified application needs to ask transloadit server?
I would need to send an arbitrary string to the server I want to notify (let’s say, longitude, latitude, user_id at the very least), should I just put this in the parameter of the notified url?
Hey Stan,
are you using our iPhone SDK? If so you can add any random additional parameter using the ASIFormDataRequest methods (which our class derives from):
http://allseeing-i.com/ASIHTTPRequest/How-to-use
Otherwise adding a string to the notify url will work just as well (but you’ll be limited to a few thousand characters in url size).
Anyway, when transloadit calls your notify_url, it will include all information about the upload and the result files as documented here:
http://transloadit.com/docs/assemblies#response-format
The fields parameter will hold any additional fields you may have set via ASIFormDataRequest.
Let me know if that works / makes sense : )!
yes, we’re planning on using the iPhone SDK
it does make sense, thanks!
Alright, closing this ticket now. But please let me know if you have more questions!