Forums

Flask app storing uploaded images to bucket

Hi,

I have a flask app where users can upload their profile image and that image is store in a S3 bucket. But the problem is the app is also storing the image on pythonanywhere as well. What can I do to stop it?

Got the answer.

If anyone is struggling, do this

os.remove(file_path)