Back

[SOLVED] Error update storage files

  • 0
  • Cloud
versun
22 Sep, 2023, 01:36

SDK: Python with API Issue: unable re-upload(update) a exist file Function: storage.create_file Error: "A storage file with the requested ID already exists"

TL;DR
The user was getting an error while trying to update a storage file. The solution is to delete the existing file first and then create a new one to avoid caching issues. The function to use is `storage.create_file`.
Drake
22 Sep, 2023, 02:01

correct...you need to delete hte file first...however, I recommend creating a new file instead of recreating it because you might run into problems if the client has cached the file

versun
22 Sep, 2023, 02:02

ok, I get it. Thanks

versun
22 Sep, 2023, 02:09

[SOLVED] Error update storage files

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more