UploadGadget() - need server result

Just starting out? Need help? Post your questions and find answers here.
Dirk Geppert
Posts: 282
Joined: Fri Sep 22, 2017 7:02 am

UploadGadget() - need server result

Post by Dirk Geppert »

I use this nice gadget from falsam: https://github.com/falsam/UpLoadGadget for upload purposes.

Is there a way to extend the callback, so that the return value from the UploadServer will also passed by?

UploadGadget.sbi Line 103:

Code: Select all

    ;   #DZ_EventType_Success = 4
    !		this.on("complete", function(file) {
    !			this.removeFile(file)
    !     v_callback(4, file.name, file.size, "Complete")
    !		});
I need the return result, because it contains an ID to be able to access the upload again later.

Ciao Dirk