I have a web application that allows you to limit file manipulation on a web server. Users can upload, download, copy, and move files to various places in their file space.
What opportunities do I have if I want to track the progress of a file copy operation from one place to another on the server?
Currently, when I copy a large file (about 1 GB), nothing happens in a couple of seconds until the copy of the file is complete. In those days, users would certainly be confused, regardless of whether their function occurs. I want to show a progress bar to inform the user that this operation is in progress.
I need to show the percentage of how much data has already been copied, since this is higher information about the progress than just informing that the copy is being performed without percent information (for example, a spinning icon with information: Copying in progress).
I am currently using the php copy () function . Should I implement my own read / write function in PHP?
My planned configuration:
- HTML5
- Php
- Javascript
- Linux Ubuntu
- Apache web server
- MySQL
Thanks in advance.
source
share