-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As an artist, I want to receive a warning when I try to upload the wrong file format, so I can publish the right one. #289
Comments
I tried to recreate this problem but apparently it is already solved. Only the allowed formats appear for the user to choose. |
I've just uploaded a PDF as an Object, and it led to the following error. I fixed it in the Django Admin, but the system still allows people to upload a wrong file format and it can break the system until the file is deleted by an admin. To reproduce it:
Be aware that this will break the system, so do this with someone with admin access "near" you. =) +++ Environment: Request Method: GET Django Version: 2.2.10 Traceback: File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/exception.py" in inner File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py" in _get_response File "/usr/local/lib/python3.7/dist-packages/django/core/handlers/base.py" in _get_response File "/usr/local/lib/python3.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view File "/ARte/src/ARte/users/views.py" in profile File "/usr/local/lib/python3.7/dist-packages/django/shortcuts.py" in render File "/usr/local/lib/python3.7/dist-packages/django/template/loader.py" in render_to_string File "/usr/local/lib/python3.7/dist-packages/django/template/backends/jinja2.py" in render File "/usr/local/lib/python3.7/dist-packages/jinja2/environment.py" in render File "/usr/local/lib/python3.7/dist-packages/jinja2/environment.py" in handle_exception File "/usr/local/lib/python3.7/dist-packages/jinja2/_compat.py" in reraise File "/ARte/src/ARte/users/jinja2/users/profile.jinja2" in top-level template code
File "/ARte/src/ARte/core/jinja2/core/home.jinja2" in top-level template code File "/ARte/src/ARte/users/jinja2/users/profile.jinja2" in block "content" File "/ARte/src/ARte/users/jinja2/users/components/item-list.jinja2" in top-level template code File "/usr/local/lib/python3.7/dist-packages/jinja2/environment.py" in getattr File "/ARte/src/ARte/users/models.py" in yproportion Exception Type: IndexError at /users/profile/ |
The system does not verify the file format now, and that can lead to errors from artists.
The text was updated successfully, but these errors were encountered: