surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.03k stars 787 forks source link

File Upload bug #8184

Closed CodeCurosity closed 3 months ago

CodeCurosity commented 3 months ago

I am using this example code for File Upload for jQuery

https://surveyjs.io/form-library/examples/file-upload/jquery#content-code

i tried everything, data is returned properly, response is valid, file name and url is returning just fine but the file upload spinner keeps spinning and when i try submitting form it says "Your file is uploading. Please wait several seconds and try again. ", file is uploaded to the proper folder and is returning url and file name but it doesn't show any preview and doesn't let me submit, what am i missing?

andrewtelnov commented 3 months ago

@CodeCurosity Do you call options.callback function in survey.onUploadFiles event? This call should hide the spinning and show the file(s) preview.

Thank you, Andrew

andrewtelnov commented 3 months ago

@CodeCurosity It is hard to help without debugging. Please check the console for errors. Probably there is an error in your console.

Thank you, Andrew

CodeCurosity commented 3 months ago

That is the issue, i have tried everything there are no errors, formdata and response is valid yet it does that, anyways neve rmind.