Guest User

Untitled

a guest
Jan 15th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Started PUT "/api/1/settings/ajax_photo_upload" for 10.0.1.3 at 2012-10-02 15:39:20 -0700
  2. Processing by ApiV1::SettingsController#ajax_photo_upload as JS
  3. Parameters: {"photo"=>#<ActionDispatch::Http::UploadedFile:0x007f9e4bac2e48 @original_filename="xxxxx.jpeg", @content_type="image/jpeg", @headers="Content-Disposition: form-data; name="user[photo]"; filename="xxxxx.jpeg"rnContent-Type: image/jpegrn", @tempfile=#<File:/var/folders/3x/k1yb0r4s07q1jm82kq93ch180000gn/T/RackMultipart20121002-3633-sxsbtu>>}, "update_type"=>"general"}
  4.  
  5. Started PUT "/api/1/settings/ajax_photo_upload" for 10.0.1.10 at 2012-10-02 15:39:31 -0700
  6. Processing by ApiV1::SettingsController#ajax_photo_upload as JS
  7.  
  8. $('input[type="file"]').fileupload({
  9. url : '/api/1/settings/ajax_photo_upload',
  10. formData : [{
  11. name : 'authenticity_token',
  12. value : $('meta[name="csrf-token"]').attr('content')
  13. }],
  14. type : 'PUT',
  15. dataType: 'json',
  16. add : function (e, data) {
  17. data.submit();
  18. }
  19. });
  20.  
  21. <input name="user[photo]" type="file" accept="image/*" >
Add Comment
Please, Sign In to add comment