Answer the question
In order to leave comments, you need to log in
How to submit a photo from a form using the FileAPI?
Hello! There is the following task: It is
necessary to make a form for sending photos with a progress bar and then sending links to uploaded photos or the photos themselves by email.
I found a script for uploading photos rubaxa.github.io/jquery.fileapi
but I don’t understand how to send photos to email and where are they saved at all?
Answer the question
In order to leave comments, you need to log in
fileapi is just the client side.
The server must have a request handler from fileapi, the address of which you specify here as url
$('#simple-btn').fileapi({
url: '/server/handler.php',
multiple: true,
maxSize: 20 * FileAPI.MB,
autoUpload: true,
elements: {
size: '.js-size',
active: { show: '.js-upload', hide: '.js-browse' },
progress: '.js-progress'
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question