Uploading files privately on backend?

Hello,

We want to to upload files privately on backend: we tried the existing post suggestions and plugins in vain.

Why do we want to do it on backend?

Because the privacy requires the database object to exist before the file is uploaded. It requires us to design an app that will loop over a form to create N empty file items first and we don’t like this approach. We prefer the upload event locally on UI file uploader to trigger a backend workflow where the file will be managed (create database object first then attach the file to it).

What’s wrong?

We tried two plugins and

  • Bubble API fails to set the privacy
  • Both Bubble API and Third Party plugins fail to set the file URL properly. It produces something like https://bubble.io/"https://ourapp.edu/version-52ycy/fileupload/f1768885693573x169471725524599870/test%20file%20upload”
    which is an invalid URL

We want to succesfully upload the file on backend and privately. How to proceed?

Thanks

See if this helps: Easy file upload to Bubble using API fileupload

1 Like

The double URL encoding issue usually means the file uploader action is double-encoding the result. try using the custom API approach directly instead of relying on bubble’s backend file upload—set privacy rules on the file object itself before you attach the URL to it.