The code you provided seems correct. Perhaps the source of the issue originates in the server-side code. We recommend you take a look at our help topic on the matter, Upload files with jqxFileUpload to PHP service. Please also make sure you are using the latest version of jQWidgets (5.4.0).
If the issue persists, please share more information about your code and the way you are using jqxFileUpload.