Use simpleVault to upload files

Hello, I’m trying to implement a file upload function using simplevault, and I want to call a backend PHP file during the upload process. However, after clicking to upload the file, the backend PHP file is not being called, and I’ve noticed that events such as beforeUploadFire and UploadFire are not being triggered. I’m not sure what’s causing the issue that prevents the backend PHP file from being called during file upload. I would appreciate your assistance. The code link is provided below. Thank you.
https://snippet.dhtmlx.com/k2t0oj1k

In the snippet you provided, there’s nothing to trigger the simplevault to upload the file. You can either have a button in the form or elsewhere on the page to trigger the upload, or you can set autosend: true in the simplevault properties. When I set the autosend property, the beforeUpload action fired.

1 Like