Skip to content

Cannot get file for storage name with complex path #147

Description

@LucianDeveloper

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions