Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.98 KB  |  hits: 21  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Best way to handle file uploads from Backbone.js to Rails-based API through a proxy?
  2. Request URL:http://our.site.com/api/files
  3. Request Headersview source
  4. Content-Length:131661475
  5. Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryHwVBiFW8AIuh18Bt
  6. DNT:1
  7. Origin:http://our.site.com
  8. Referer:http://our.site.com/
  9. User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2
  10. Request Payload
  11. ------WebKitFormBoundaryHwVBiFW8AIuh18Bt
  12. Content-Disposition: form-data; name="name"
  13.  
  14. 861-railsconf2012-using-backbone-js-with-rails-patterns-from-the-wild-large.mp4.mpg
  15. ------WebKitFormBoundaryHwVBiFW8AIuh18Bt
  16. Content-Disposition: form-data; name="file_entry[folder_id]"
  17.  
  18. 32984
  19. ------WebKitFormBoundaryHwVBiFW8AIuh18Bt
  20. Content-Disposition: form-data; name="file"; filename="861-railsconf2012-using-backbone-js-with-rails-patterns-from-the-wild-large.mp4.mpg"
  21. Content-Type: video/mpeg
  22.  
  23.  
  24. ------WebKitFormBoundaryHwVBiFW8AIuh18Bt--