Forki Posted January 29, 2007 Share Posted January 29, 2007 I made a website with AJAX and PHP for uploading and managing files. Not only files but also a lot of metadata and permissions. I have one page with a private, shared and public workspace. A form to create/modify/move/delete a folder or file is just a new layer on top of the current contents of the webpage. When a user presses submit, data is send to server thru ajax, data is checked. If OK a return message is send with an OK and the form disappears, otherwise the fields with the errors are highlighted. For a file upload I use a hidden iframe where the server sends a generated javascript: when OK form disappears, otherwise fields with the errors are higlighted. It is not just a file upload, but users has to specify a lot of metadata for each file depending on the type.For large files I need something for the users so that they can see that the upload is busy, but I would like to close the form so that the users can contunue working. For this I need the upload of the file and display of the progress bar take place in a a different window or in another frame/place.I will probably will have to use a perl-script to accomplish this, but I want to keep it as basic as possible. Just a progressbar, or maybe bytes send versus total bytesize, ... But only one file needs to be uploaded at the time.Any solutions ?Thanx,JM Link to comment https://forums.phpfreaks.com/topic/36172-how-to-make-a-progress-bar-for-a-file-upload/ Share on other sites More sharing options...
ScotDiddle Posted January 29, 2007 Share Posted January 29, 2007 Johan,Try here for a perl script that works well:http://encodable.com/filechucker/For a PHP script, try here:http://www.devpro.it/upload_progress/Scot L. Diddle, Richmond VA Link to comment https://forums.phpfreaks.com/topic/36172-how-to-make-a-progress-bar-for-a-file-upload/#findComment-171844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.