Skip to content

Commit 85993a8

Browse files
committed
Adding the XHR object to the s3_upload_failed callback
As a solution for this issue: waynehoover#181 Sometimes more details about the failure is needed...
1 parent d572951 commit 85993a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/assets/javascripts/s3_direct_upload.js.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ $.fn.S3Uploader = (options) ->
108108
content.error_thrown = data.errorThrown
109109

110110
data.context.remove() if data.context && settings.remove_failed_progress_bar # remove progress bar
111-
$uploadForm.trigger("s3_upload_failed", [content])
111+
$uploadForm.trigger("s3_upload_failed", [content, data.jqXHR])
112112

113113
formData: (form) ->
114114
data = $uploadForm.find("input").serializeArray()

0 commit comments

Comments
 (0)