FileUpload Ajax to call Javascript function vs serverside/php?

FileUpload Ajax to call Javascript function vs serverside/php?

JenDJenD Posts: 8Questions: 3Answers: 0

Is it possible to set the Ajax value to a javascript function? I do not have server side to run php-- I'm using Firebase as my backend, so on file upload, need to call Javascript to then call firebase cloud function or storage.

If not, is there a way to select the file, don't show it in the editor, but then on postcreate, capture the binary data for the file and then I can upload it. When i try without ajax, I get an error, "datatables.min.js:287 Uncaught Error: No Ajax option specified for upload plug-in" so assuming file upload requires Ajax, which then gets me back to my first question..

thanks

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Yep, that's possible to use a function for ajax, see the last section under Types in the reference page, and the last example at the bottom of the page.

    Colin

Sign In or Register to comment.