Implement functionality that enables the dynamic change of the chunk size when uploading a file.
This change should depend on file size and upload speed.