Skip to content

Commit 3a31cf0

Browse files
Merge pull request #297 from cloudinary/DEVX-17327-remove-callback
feat!: Remove callback param
2 parents d26598d + c73447d commit 3a31cf0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pkg/cloudinary-jquery-file-upload/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ $.cloudinary.config({ cloud_name: "demo"});
6363
type="file"
6464
class="cloudinary-fileupload"
6565
data-cloudinary-field="image_id"
66-
data-form-data="{ "upload_preset": "user_upload1",
67-
"callback": "https://www.example.com/cloudinary_cors.html"}"
66+
data-form-data="{ "upload_preset": "user_upload1"}"
6867
/>
6968
```
7069

src/jquery-file-upload.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ jQuery.fn.unsigned_cloudinary_upload = function(upload_preset, upload_params = {
194194
}
195195
}
196196
}
197-
if (!upload_params.callback) {
198-
upload_params.callback = '/cloudinary_cors.html';
199-
}
200197
upload_params.upload_preset = upload_preset;
201198
options.formData = upload_params;
202199
if (options.cloudinary_field) {

0 commit comments

Comments
 (0)