application/js/upload_manager.js in spontaneous-0.2.0.beta1 vs application/js/upload_manager.js in spontaneous-0.2.0.beta2
- old
+ new
@@ -6,26 +6,27 @@
var Upload = S.Upload;
var WrapUpload = new JS.Class(Upload, {
start: function() {
var form = new FormData();
form.append('file', this.file);
- this.post(["/file/wrap", this.target_id].join('/'), form);
+ this.post(["/file", this.target_id].join('/'), form);
}
});
var ShardedWrapUpload = new JS.Class(S.ShardedUpload, {
path: function() {
- return ["/shard/wrap", this.target_id].join('/');
+ return ["/shard", this.target_id].join('/');
},
+ method: "POST"
});
var FormUpload = new JS.Class(Upload, {
initialize: function(manager, target, form_data, size) {
this.callSuper(manager, target, form_data)
this.form_data = this.file;
this._total = size;
this.name = "Saving...";
},
start: function() {
- this.post(this.target.save_path(), this.form_data);
+ this.put(this.target.save_path(), this.form_data);
}
});
var UploadManager = {
init: function(status_bar) {
this.status_bar = status_bar;