I found the answer myself. To make Fine Uploader work with PHP forms, do following:
Set
form: { interceptSubmit: true, autoUpload: false,},
Now the user can complete text fields. When the user pushes submit button, Fine Uploader begins the file upload.Set
callbacks: { onComplete: function(id, name, response) { if (response.success) { location.href = 'YOUR_URL_HERE'; } } }
This is how you can reload the page or do something similar that normally happens when you submit a form. Of course you can reload the content with Javascript too.Endpoint.php: The content of the form is found most easily from $_REQUEST.
- Any bug at any part of endpoint.php will probably cause an error message when uploading the file even if the upload would be succesfull. This is what I learned.