New APIs and DB Drivers
We released the following Media Manager APIs and DB Drivers:
moveFilesToTrash(): Moves single or multiple files to the Media Manager's trash.
moveFoldersToTrash(): Moves single or multiple folders, including their files and sub-folders, to the Media Manager's trash.
downloadFiles(): Returns a download URL for downloading files from the Media Manager.
downloadFolder(): Returns a download URL for downloading a folder from the Media Manager.
API Fix
We deprecated the fileName property. It will continue to work, but we recommend that you use the updated fileUrl property instead.
The fileUrl property is the Wix media URL. For example, 'wix:image://v1/<uri>/<filename>#originWidth=<width>&originHeight=<height>[&watermark=<watermark_manifest_string>]'.
MoveFilesToTrash() does't seem to be working.
It says "It may take some time for the results to be seen in the Media Manager." but how long is this time?
Please and thank you,
Okey-iwobi
hey, this is a great improvement and helps my project a lot! However, I am struggling to permanently delete files with velo codes as it says i have to empty it every time manually.
I'm working with a lot of job schedulings to delete, update, and create data. And one of them is to permanently delete the uploaded images/videos every 14 days. Alternatively, I wouldn't mind a feature to only keeping the uploaded files temporarily. But please let me know if you have a solution for me. Thank you!