How to submit form with file upload field using API ( PHP )