Skip to content
Init is coming / May 19 - 23
Back

update file

  • 0
  • Flutter
  • Storage
Mosh Ontong
20 Apr, 2023, 03:12

how to update the file in storage, like for example the mp3 file will be update into wav file

TL;DR
The user is asking about how to update a file in storage. They mention that creating a new file with a new ID is recommended when using the same bucket. They also suggest using a function to process the file on upload. The user is confused about the concept and parameters of the update file method in storage. The solution provided is to refer to the Appwrite documentation for Flutter and check the update file method mentioned there.
Drake
20 Apr, 2023, 03:25

Use a function to process the file on upload

Mosh Ontong
20 Apr, 2023, 03:26

how about the update file method in storage?

Mosh Ontong
20 Apr, 2023, 03:27
Mosh Ontong
20 Apr, 2023, 03:27

?

Mosh Ontong
20 Apr, 2023, 03:27

since it has the term of 'update' file

Drake
20 Apr, 2023, 03:27

Mhmm...look at the parameters

Mosh Ontong
20 Apr, 2023, 03:28

I think the method name should be revise into updatePermissionFile

Mosh Ontong
20 Apr, 2023, 03:30

or I hope we have this another method of replaceExistingFile

Drake
20 Apr, 2023, 03:31

Honestly, I highly recommend creating a new file with a new ID if you're using the same bucket. This is because if you use the same ID, the file can be cached client side and would not be fetched again if updated

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