Hi,
Depending on the program flow, I may need to move each uploaded file to a different individual folder tree afterwards on the server. (I cannot do this at upload time with storagePath(), since at that time the folder tree is still unknown.) What I do now, is after I moved the file I update the file document fileRef.path with the new path. However this does not seem to be sufficient, because when I then afterwards e.g. remove the document from the collection, the moved file is not automatically deleted anymore. So what else do I need to take care of?
Thanks in advance
Hello @Avijobo ,
There is three properties used to physically locate the file:
fileRef.pathfileRef._storagePathfileRef.versions.original.pathSee Schema docs
Let me know if it helped.
That works! Thanks a million for your excellent support!
@Avijobo great! I'm glad we have solved it.
Please, support this project by:
Most helpful comment
That works! Thanks a million for your excellent support!