Does anyone know how to send a private file via an API POST to a third party service? OR, duplicate the private file to a non-private file, then send, then delete the non-private file?
I’m trying to send a private file to an E-Sign tool (BoldSign) but it doesn’t like the private fie url with the AWS keys.
@tylerboodman Looks like this plugin is limited to 6Mb files.
I can GET files from external services via API and convert them to a ‘private file’ …There must be a way to do this in reverse. GET a file from the Bubble S3 and save it as a public file, upload to Bold and then delete.
You need ton use Apikey to send a private file to a third party service.
?api_token=bubbleapikey after the file URL
There’s a plugin that you could test: File Uploader Bubble API Plugin | Bubble
The goal of this plugin was mostly to a) add extension when getting a file from API Connector and b) make a file private when the original upload was public (like from API Connector too)
But I guess it could be used to take a private file to make it public. However, this is also a server side action and may face similar issue if the file is too big.
Is that documented someone, sticking the admin API key at the end of the URL? I don’t know about giving an external API my Bubble API key, but also if the file is private it should’ve sent a presigned URL to the external service already with the extra temporary AWS parameters…
The plugin worked well. What I did was generate the public file with the API key and then pass the documents value to the API, then deleted the public file. This way no api key is being passed externally.