4/3/2024 0 Comments Flask upload progress bar![]() ![]() I'm sure this code can be improved and optimized so feedback is welcome. We're going to post the file to the server using JavaScript's XMLHttpRequest and keep them updated on the status with a progress bar and a percentage of how much of the file has been uploaded.Īt this point I should probably point out that I'm not a JavaScript expert. ![]() We're not concerned about what happens with the file once it gets to the server (We've covered that in another guide). In this example, we're going to create a single input element, allowing the user to select a file and upload it to the server. Instead, we should provide the user with some visual feedback, indicating the status of their upload. Posting a large file to the server using a form poses an immidiate problem as it could take several minutes or even hours, depending on the filesize. If an application doesn't provide the user with the right level of feedback, there's high chance that they'll end up disliking it. User feedback is important, very important. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |