Hello, i am sorry if it was on a forum, i was not able to find the answer.
How to make a copy of a file in back-end workflow?
Thank you for help!
Hello, i am sorry if it was on a forum, i was not able to find the answer.
How to make a copy of a file in back-end workflow?
Thank you for help!
Hey @ForeverLive - you can use the File Upload API endpoint.
You basically,
Good luck!
You mean you database right,
there are two things both are seperate for test & live version.
- Database : if you goto your database you can see export option and you can export it or restore it to a specific time depending on your plan allowence. you can do it for both dev and live, there is an option to choose which database you want to see.
- Filemanager: In same database you see a file manager option, there you can see all the files uploaded to your database, like Images, PDF, Text file, you can export them form there for both dev and live verison. ( Files are store into AWS S3 bucker ) you can also get link you file if its public any one can download it if they have the link, else if you attached it with somethign user let say, only that user token can allow you to download the file form link.
but for your case, you can export it form file manager form editor.
i endup to just download file with GET request of API connector. The problem is - you can’t copy private files this way.
i asking about backend workflows.
There is also a copy option you data Management in action within workflow
I don’t see “Copy File” action. You can copy thing but it’s not a file.
Hey @ForeverLive you can do it that way with the GET request, you can even get a private file using your app API key as the authorization header.
If you want to reupload as a private file, or change the thing it’s attached you, you’ll have to go through the API file upload endpoint
Thank you! How to attach the file uploaded with API request? Is it possible to make it private somehow?
Hey @ForeverLive you can have a look through the link i had shared earlier:
Thank you! This works.
That’s a great tip, @ForeverLive. To access or upload private files, adding your app API key as the authorization header in a GET request can indeed be helpful. For reuploading or modifying attachments, you’ll need to utilize the API file upload endpoint as mentioned, which can be a bit more complex but provides the necessary functionality.