Questions tagged [flask-reuploaded]
10 questions
8
votes
3 answers
cannot import name 'secure_filename' from 'werkzeug'
I'm trying to import secure_filename from werkzeug.utils and it shoot an error. It works fine under my base virtual env.
code:
# Flask packages
from flask import Flask, render_template, request, session, redirect, flash, send_file
from…

louis lau
- 259
- 2
- 3
- 5
3
votes
1 answer
How to import flask-reuploaded module
I was trying to use flask-uploads module but I found in the thread:
Flask-Uploads Module
That I should go with flask-reuploaded module to fix the error:
import name 'secure_filename' from 'werkzeug'…

Gabriel
- 31
- 1
1
vote
1 answer
Could not build url for endpoint '_uploads.uploaded_file' with values ['filename', 'setname'] when i use flask-reuploaded to upload the image
I get into trouble when I would like to store the image_url for updating the picture of my product. The flask extensions that I used are flask-reuploaded and flask-wtf. I have tried to search a lot but still cannot figure out a solution. Could you…

Hoang Anh Nguyen
- 11
- 1
1
vote
2 answers
Handling Flask-Reuploaded error when uploading a file with a disallowed filetype or no file
Hello,
I am trying to handle errors when uploading a file with a disallowed filetype or when submiting without selecting any file.
All I get is "flask_uploads.exceptions.UploadNotAllowed" and on the web page "Internal Server Error". I want to flash…

Endriu Andrei
- 53
- 1
- 5
1
vote
1 answer
I am using flask_uploads and am getting this error ImportError: cannot import name 'patch_request_class' from 'flask_uploads'
my code looks like this
from flask_uploads import IMAGES, UploadSet, configure_uploads, patch_request_class
import os
basedir = os.path.abspath(os.path.dirname(__file__))
app.config['UPLOADED_PHOTOS_DEST'] = os.path.join(basedir,…

Victor02
- 15
- 5
1
vote
1 answer
Flask flask_uploads.UploadNotAllowed error
I am using flask to handle image uploads and whenever I upload a jpg, jpeg, or png the program I made is able to handle the upload. However, whenever uploading a .jfif image the program returns the error flask_uploads.UploadNotAllowed. Thanks for…

Python 123
- 59
- 1
- 13
1
vote
1 answer
"RuntimeError: no destination for set photos" using flask-reuploaded
I'm practicing with flask and uploads and I'm encountering some issues.
Firts I downloaded flask-uploads to manage uploads of file but I figured out that this package have problem so I moved to Flask-Reuploaded and everything seems working…

lorenzo
- 21
- 5
0
votes
1 answer
understanding file renaming within flask_uploads. (any filename changes other than " " replaced by "_" ? )
I'm using flask_uploads within a python virtual environment where Flask-Reuploaded is installed.
(I mention this as I've noticed a few versions of flask_uploads and have no idea how these differ)
from flask_uploads import configure_uploads, ALL,…

CodingMatters
- 1,275
- 16
- 26
0
votes
1 answer
Flask API for uploading a video
I like to write an api that accept from the user a video via a post command. Any body can let me know how can I use Flask-Uploads for extensions mp4 or other video extensions?

Diana
- 1
- 1
0
votes
2 answers
no module named flaskext.uploads
I'm trying to use flask-uploads for image upload feature in my flask app.
I used pip install Flask-Uploads to install and pip install Flask-Uploads --upgrade to upgrade the flask-uploads module.
But when I import it, it gives me an error, here's…

Saud Punjwani
- 1
- 1