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

🐛 Bug Report: Deleting a file leads to error message "Invalid fileId" UID must contain at most 36 chars. #5749

Closed
2 tasks done
trashcoder opened this issue Jun 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@trashcoder
Copy link

trashcoder commented Jun 26, 2023

👟 Reproduction steps

While deleting files i get an error message "Invalid fileId: UID must contain at most 36 Chars...."

I can't delete this file from Appwrite Web-Gui.
Bildschirmfoto 2023-06-26 um 12 56 21

👍 Expected behavior

Regardless of the fileId it should it be possible to delete it.
On the other hand appwrite should check the fileId when the file is beeing uploaded.

👎 Actual Behavior

File can be uploaded but not deleted.

🎲 Appwrite version

Version 1.3.x

💻 Operating system

Linux

🧱 Your Environment

Appwrite Server 1.3.7

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@trashcoder trashcoder added the bug Something isn't working label Jun 26, 2023
@trashcoder
Copy link
Author

trashcoder commented Jun 28, 2023

The File has the fileId "unique()".
I made an error when i coded the Axios.post command to upload the file, but i can't delete it anyways.

In my opinion the Appwrite Server has to decline a file, when the fileId contains invalid chars like ( )

Btw. the fileId gets checked when i want to delete it:
Invalid fileId: UID must contain at most 36 chars. Valid chars are a-z, A-Z, 0-9, and underscore. Can't start with a leading underscore

@stnguyen90
Copy link
Contributor

Closing as this should have been fixed as part of #5542

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants