app/assets/javascripts/s3_relay.coffee in s3_relay-0.4.1 vs app/assets/javascripts/s3_relay.coffee in s3_relay-0.4.2
- old
+ new
@@ -44,12 +44,16 @@
fileInput.val("")
uploadFile = (container, file) ->
fileName = file.name
+ # Assign unique id to each file to pass as get parameter so Safari doesn't
+ # consolidate the requests
+ $(file).uniqueId()
+
$.ajax
type: "GET"
- url: "/s3_relay/uploads/new"
+ url: "/s3_relay/uploads/new?unique_id=#{file.id}"
success: (data, status, xhr) ->
formData = new FormData()
xhr = new XMLHttpRequest()
endpoint = data.endpoint
disposition = container.data("disposition")