class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
on the form page, the file upload does not work. Is there a way to make this work with jquery as I need it for page layout? Otherwise it works fine.Reply
Yes, I got it now with xhr upload. I still have a weird problem with it. I can upload one image successfully, but after I return to the upload page, it does not work with a second image without refreshing the page with browser. On the second time the function below does not show anything and it doesn't upload the file like the form could not pass the file forward.
on the form page, the file upload does not work.
Is there a way to make this work with jquery as I need it for page layout?
Otherwise it works fine.
I still have a weird problem with it. I can upload one image successfully, but after I return to the upload page, it does not work with a second image without refreshing the page with browser. On the second time the function below does not show anything and it doesn't upload the file like the form could not pass the file forward.
function xhr_parse(f, e) {
if (f) {
document.getElementById(e).innerHTML = "File selected : " + f.name + "(" + f.type + ", " + f.size + ")";
} else {
document.getElementById(e).innerHTML = "No file selected!";
}
}