By far the best Flask channel on youtube! it has everything. Thanks a lot!
@prettyprinted5 жыл бұрын
Glad you think that. Thanks!
@parvathygs18104 жыл бұрын
Thank you for this excellent video.. I implemented the same logic in django.. A file uploaded with progress bar successfully...I have a question : Could you please tell me how to use same logic for multiple fileupload with progress bar in django...?
@jasonsmith68263 жыл бұрын
Yes, please. I’d appreciate this as well.
@nalini68007 жыл бұрын
Very good one from what all i searched so far!!! Please keep doing this great job.
@guinea_horn4 жыл бұрын
Thanks for the video. I'm not sure if you'll see this but I've got a quick question 😊 I want to update a page with a value that changes overtime based on calculation on the backend, and maybe have a progress bar associated with that. How would I continuously update an element on the page based on data that comes from the backend, say, several times per second, without reloading the page each time?
@nimmero3 жыл бұрын
Have you already worked it out? I have the same problem right now ... :D
@yomajo2 жыл бұрын
@@nimmero Have YOU worked it out? :D
@BinaryBugs3 жыл бұрын
Great content Thanks!. Suppose If we want to send a input text data along with form. how to achieve that?
@poojakadam34432 жыл бұрын
I implemented this code working fine, One of the best solution i found, nicely explained. I want to show progress bar for multiple file processing, can u please guide?
@pedropvf5 жыл бұрын
Thanks a lot for the succinct and clear example and explanation. It helped a lot
@prettyprinted5 жыл бұрын
you're welcome! Thanks for watching.
@renzors8 жыл бұрын
Excellent explanation, Anthony. It helps a lot! Thank you so much.
@prettyprinted8 жыл бұрын
I'm glad I could help.
@rushas4 жыл бұрын
This was very helpful. Thanks
@kamilpazik24148 жыл бұрын
Really great, thank you. Recently I'm wondering how to connect that with drag & drop, any good ideas ?
@prettyprinted8 жыл бұрын
I could make a video on how to add drag & drop in the next few days. Thanks for watching!
@gurucode.studio8 жыл бұрын
Thanks dude , i enjoyed the video, and also it would be nice if we hide the progress bar by default so when the upload starting the progress bar get appeared, and again your channel is the best keep it like that :)
@prettyprinted8 жыл бұрын
It should be as simple as giving the progress bar a hidden attribute and then removing it once the upload starts.
@naveentechhie3 жыл бұрын
can you create video on step bar which should work responsive with backed
@davidbalague93116 жыл бұрын
Excellent video, just what I was looking for. Well explained and detailed. Thanks!
@prettyprinted6 жыл бұрын
You're welcome! Thanks for watching.
@eyonky62345 жыл бұрын
This wouldn't work with multiple files though. Any ideas how would be able to do that?
@gkcchief28024 жыл бұрын
This is exactly what I was looking
@himansu9796 жыл бұрын
Thank you so much for nice video. Do you have an example how to make drag and drop area for images using Flask. User should be able to drag an image and using flask should be able to save to some different folder.
@prettyprinted6 жыл бұрын
I don't yet, but that's a good topic. I'll add it to my list of topics to cover.
@namrathasrimateti91194 жыл бұрын
Great Video sir!! It helped me a lot. I'm wondering if I need to upload multiple files how can the progress bar calculate avg of all those files. Any suggestions would be appreciated. Thank You!
@TheXSimulated5 жыл бұрын
Hi, just wondering if you have a video of how to create an image upload interface with image preview using Bootstrap elements? Thanks!
@prettyprinted5 жыл бұрын
I don't, but I'll consider making one. Thanks for the idea.
@QUUBBLE7 жыл бұрын
hi, Great tutorial. I have a question: how to show the progress bar visible only at the time of upload and hidden at all other times using bootstrap (in this tutorial). thanks
@prettyprinted7 жыл бұрын
Create the progress as hidden in HTML (style="display:none;") Then in the submit event function, you can show it with $(...).show();
@tirthrajput44834 жыл бұрын
every thing is explain well , but when i writing app.py program flask.ext.uploads not working give error '" from flask.ext.uploads import UploadSet,configure_uploads ModuleNotFoundError: No module named 'flask.ext' "
@AndyChamberlainMusic4 жыл бұрын
newer version of flask don't have the ext folder. All that import was doing was setting up file saving, so you can do that manually with normal python. I replaced line 14: filename = files.save(request.files["media"]) with this: file = request.files["media"] file.save("uploads/" + file.filename) However this has no checking for a good filename format so I'd suggest adding this import statement: from werkzeug.utils import secure_filename and then having the function look like this: @app.route("/upload", methods=["GET", "POST"]) def upload(): if request.method == "POST" and "media" in request.files: file = request.files["media"] filename = secure_filename(file.filename) file.save("uploads/" + filename) return render_template("upload.html")
@danielcardonamartinez35355 жыл бұрын
Is there a way to do a progress bar with a runtime of a function from php?. Thanks for the video.
@gkcchief28024 жыл бұрын
Thanks bro...u save my time
@pauldumanig7 жыл бұрын
Hi! instead of determining the 'loaded' value from the actual bytes loaded, how do i suppose to get the value coming from the controller instead? I intend to implement it not with file upload, but with reports query from the DB.
@prettyprinted7 жыл бұрын
That's a little more complicated. Just thinking about it now, you'd probably need to figure out a novel way of measuring progress of your report queries along with having some real time functionality (like Socket.IO) to push the progress percentage to the client. If you're interested, I offer coaching to help solve more complicated problems like this. You can read about it here: prettyprinted.com/coaching
@asn65433 жыл бұрын
I used exactly your code but my progress-bar percentage is not the file upoladed percentage. And the form is processing. Am I missing something?
@loaisiwas44833 жыл бұрын
In my application, after uploading the file, the page is redirecting to the file page, "return redirect(url_for('file_view', id = file.id))" where I have another view that shows the details of this file. I followed the video, the progress bar was added successfully, but the redirect no longer works. Tried doing a redirect from javascript, but it is possible to redirect to a static link, but I want to do a redirect and pass the id number of the uploaded file (the id is set by flask sqlalchemy) any solution please?
@charanch33184 жыл бұрын
How to create a progressbar with percantage , when we call a web service through ajax call.
@lyndontan95947 жыл бұрын
Great!! Tuts!. but i have a question my progressbar is already done but my upload file is still uploading.
@prettyprinted7 жыл бұрын
Thanks. It's hard for me to tell you what's wrong with that description. How off is the sync between the bar and uploaded file?
@lyndontan95947 жыл бұрын
Goodmorning! thanks for the reply ahm on your video in your console.log everytime your'e uploading a data the bytes and total size are incrementing while in part its already done for example if i have a size of "76025" it will not increment 1...76025 it will finished at 76025 thats why my progressbar already completed.
@yohankurniadi49995 жыл бұрын
Hi Sir, how you upload the data? because I can't get the data uploaded into the folder,. the progress bar works until 100% and said "File uploaded!", but when I check into the folder, the file doesn't exist. Please advice. Thank You.
@NiteshSingh-yi1xi6 жыл бұрын
Hi Anthony I am trying to create a progress bar for a http get route which internally calls another rest api, the whole business logic is in my http get route if 200 it redirects to success route else error route. Now I am trying to bring progress bar so in jQuery I am able to make route call for the request and I am getting response as well but my next route i.e. the plan html which is not getting loaded could you please advise on what may be the issue.
@jinkaz28954 жыл бұрын
how to send file with data(text) like i want to have a texbox for filename..?
@Amazoniacentral4 жыл бұрын
Essa sunção xhr.upload.addEventListener('progress', function (e) {} não está funcionando no chrome e nem no firefox, o que houve? porque isso? já verifiquei em vários fóruns mas nada de resposta
@anikets42708 жыл бұрын
Thanks for making these tuts man
@prettyprinted8 жыл бұрын
You're welcome, and thanks for watching!
@maximerouhier22015 жыл бұрын
Thank you for what you're doing ! It helps a lot !
@smilebig38843 жыл бұрын
This is great, thanks man.
@kayajones92154 жыл бұрын
is there a way in my flask app that I can have a loading bar on one screen then when it reaches 100% or goes all the way through another screen loads??
@romansleonovs4955 жыл бұрын
How to make the same script but supporting multiple files and each file start upload after the previous finished?
@justynatajemnica31306 жыл бұрын
I just sent all files (original directories) to server (and i checked on my Apache as well) and script do not working. When I select a file and click to send it then page i reload ang get info PAGE NOT FOUD
@nartiscoding6 жыл бұрын
SAme problem
@mrhaite6 жыл бұрын
Hello, i just fetching json data using AJAX, with Rails any idea?
@prettyprinted6 жыл бұрын
I don't have any Rails videos, but the idea is basically the same once you learn how to create endpoints in Rails.
@jerempatton5 жыл бұрын
Hello! I downloaded the files and ran them on my localhost. However neither the progress bar works, nor the console.log() seems to be working... any idea why? UPDATE: the progress seems to be running in the browser status bar instead of the itself!
@prettyprinted5 жыл бұрын
Both are JavaScript based. Do you have JavaScript active in your browser?
@jerempatton5 жыл бұрын
@@prettyprinted thanks for your answer. Yes it is allowed on the browser (I also tried with firefox as a comparison and it does the same in the status bar). However, still no console logs or updated progress bar :/
@abhinavkaushik68174 жыл бұрын
how can i render html rather alert and pop up?
@carlospatricio68427 жыл бұрын
He, I would like to know how can I do a progress bar to change the page, I am new in python and I have a page to run ansible but this page is loading for a time and I want to put a progress bar for the users, please can you help me
@prettyprinted7 жыл бұрын
Any progress bar has to be based on actual processing. So first thing you have to figure is how to measure the progress of some process. Then after that, you create the actual progress bar like I've done in this video.
@carlospatricio68427 жыл бұрын
thank you Sr, I needed a gif, I think is not correct but was so hard do that
@3e9505 жыл бұрын
how you setup IP address for opening .html template is it localhost for something
@vaishnav47504 жыл бұрын
Try live server plugin...
@Hafiz91886 жыл бұрын
Hello, i am using this code in word-Press jQuery ajax. instead of showing me the real time process it shows me all progress at once.. when i click on button ti Bytes loaded, Total size and percentage results display at once,
@jacobhenry72237 жыл бұрын
you are a good teacher
@prettyprinted7 жыл бұрын
Thanks, I appreciate it!
@jacobhenry72237 жыл бұрын
good.... one day i will be like you in python programming because i use you videos for learning....and thank you for being open to African people like me........i love you
@MyFlabbergast6 жыл бұрын
@@jacobhenry7223 African people are just as awesome as anyone else around the globe. And thanks a ton, @Pretty Printed.
@desectorconfeliox88606 жыл бұрын
Good video, helped me a lot!
@prettyprinted6 жыл бұрын
Thanks for watching!
@chrisfraps5895 жыл бұрын
Hi can this be implemented on Django?
@prettyprinted5 жыл бұрын
I'll see what I can do.
@allenteezyy27446 жыл бұрын
Sir why i'm getting FILE UPLOADED! when i click submit button even if i don't put any file on my input file. And if i put a video it says FILE UPLOADED! but when i check my UPLOAD FOLDER there's nothing in it. :/
@allenteezyy27446 жыл бұрын
I hope you get this sir. :(
@prettyprinted6 жыл бұрын
For saving the file, do you have to correct directory setup? Also, this video covers a narrow use case, so it doesn't cover a case where a user doesn't behave as expected.
@tecnofest7683 Жыл бұрын
It's good job. Thanks!
@prettyprinted Жыл бұрын
Thanks for watching!
@heavydestroyer718 жыл бұрын
Great work. Thanks you for sharing.
@prettyprinted8 жыл бұрын
Thanks for watching!
@akshayrathore87397 жыл бұрын
thank u sir.., for sharing knowledge
@prettyprinted7 жыл бұрын
Thanks for watching!
@ozcanyarimdunya6 жыл бұрын
Simple and perfect. Thank you.
@prettyprinted6 жыл бұрын
You're welcome!
@ashokkumar55815 жыл бұрын
Great video.
@nadiaochikh33043 жыл бұрын
please why the code is not working????
@adesanyaadewale60017 жыл бұрын
Great Video. Thanks for this.
@prettyprinted7 жыл бұрын
Thanks for watching!
@shanefilan72267 жыл бұрын
Thanks dude, really helpful. And could u give us a copy of the sample code?
@prettyprinted7 жыл бұрын
Here you go: s3.us-east-2.amazonaws.com/prettyprinted/upload_progress_bar_jquery.zip
@aggieaggie39464 жыл бұрын
mine has failed to function it just brings me errors