Skip to content
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

Cannot get file for storage name with complex path #147

Open
LucianDeveloper opened this issue Apr 22, 2024 · 0 comments
Open

Cannot get file for storage name with complex path #147

LucianDeveloper opened this issue Apr 22, 2024 · 0 comments

Comments

@LucianDeveloper
Copy link

File "/usr/local/lib/python3.10/site-packages/sqlalchemy_file/file.py", line 153, in file too many values to unpack (expected 2) <class 'ValueError'> too many values to unpack (expected 2) <traceback object at 0x7f34c0c05b40> return StorageManager.get_file(self["path"]) File "/usr/local/lib/python3.10/site-packages/sqlalchemy_file/storage.py", line 115, in get_file upload_storage, file_id = path.split("/")

If you are using a repository with folders like project-media/user_avatar, you will get an error when trying to retrieve the file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant