I would like to upload a file using Fine Uploader. I used the example given at the website:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Fine Uploader Demo</title>
<link href="fineuploader-3.5.0.css" rel="stylesheet">
</head>
<body>
<div id="fine-uploader"></div>
<script src="fineuploader-3.5.0.js"></script>
<script>
function createUploader() {
var uploader = new qq.FineUploader({
element: document.getElementById('fine-uploader'),
request: {endpoint: 'test.php'}
});
}
window.onload = createUploader;
</script>
</body>
</html>
Apparently the upload process was fine. However, when the uploading finished, I got the "Upload failed" message.
I think we need another server-side script to handle the upload. How can the server-side script 'test.php' accept the upload? Any sample code provided will be appreciated.
Also, for Fine Uploader, is there an upper limit to the size of the file being uploaded? I tried uploading a 5GB file and it didn't seem to work.
Lastly, how can we display the rate of upload as well as the time remaining?