Setting the delete url?

1,357 views
Skip to first unread message

Matthew Diggins

unread,
Aug 27, 2013, 2:15:39 PM8/27/13
to jquery-f...@googlegroups.com
I've got the File Upload plugin working in a Codeigniter environment, except for deletion. The data-url atribute of each delete button element is "undefined" so clicking the delete button doesn't work (ie file.deleteUrl is "undefined"). I can see there is a delete_url being returned in the upload JSON response - is this all that is required? If so, why is it not being set as the file.deleteUrl variable?

Matthew Diggins

unread,
Aug 27, 2013, 3:47:38 PM8/27/13
to jquery-f...@googlegroups.com


On Tuesday, 27 August 2013 19:15:39 UTC+1, Matthew Diggins wrote:
I've got the File Upload plugin working in a Codeigniter environment, except for deletion. The data-url atribute of each delete button element is "undefined" so clicking the delete button doesn't work (ie file.deleteUrl is "undefined"). I can see there is a delete_url being returned in the upload JSON response - is this all that is required? If so, why is it not being set as the file.deleteUrl variable?

OK after looking up the original UploadHandler PHP file, the names returned by JSON from the CI example at

https://github.com/blueimp/jQuery-File-Upload/wiki/jQuery-File-Upload-6.5-with-CodeIgniter-2.1

are partly wrong: "delete_url" should be "deleteUrl", "thumbnail_url" should be "thumbnailUrl" and "delete_type" should be "deleteType".
Reply all
Reply to author
Forward
0 new messages