sqlalchemy-file icon indicating copy to clipboard operation
sqlalchemy-file copied to clipboard

Cannot get file for storage name with complex path

Open LucianDeveloper opened this issue 1 year ago • 0 comments

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

LucianDeveloper avatar Apr 22 '24 20:04 LucianDeveloper