Here a quick way to upload files to Bubble storage and make them private. Use the fileupload API that is available in every bubble app, here the API connector settings:
It used to be somewhere in the documentation but I cannot find it anymore. It took me quite some time searching the forum (this tip is also for future me ).
Exactly. You don’t need to set the type, only the unique ID. However, it doesn’t mean this is set into a field of this item. Only private to this item.
Does anyone know if the /fileupload API can be used to upload file in chunks or accepts other encoding than Base64?
I’m trying to build a plugin where bigger files can be uploaded in backend so that, if files are uploaded by user without the thing that the file should be attached to already existing, the files can be reuploaded as private as soon as the thing is created.
Atm there is a tool aquired by Zeroqode which does that but also relies on base64 encoding. It seems that the plugin stops working with files larger then ~5.5MB
In theory it should work as the multifileuploader also relies on the /fileupload endpoint for files up to 50MB but I really cannot figure it out without proper documentation of the endpoint.
The plugin that you are talking about is a server side plugin. Server side action are very limited in memory and this is why it fail if files are too large.
I guess fileupload endpoint should be able to handle large file upload… but from backend? not sure…
Yeah, currently the plugin I’m building always crashes due to memory constraints.
That’s why I’m trying to load only part of a file from the origin URL and upload in chunks to /fileupload to try to work within the memory constraints of 128MB. I’m just not clear if the /fileupload endpoint accepts chunked files…
Welp, anywhere you look in Bubble there are mind numbing limitations when it comes to trying to setting up your app to properly enable privacy for user data. It’s just so frustrating
Can you explain what is your issue exactly? How file is uploaded actually? From API Connector? Which type of file? (if this is large, is it a video?) Maybe you could consider a third party storage solution instead…
I’m providing my users with a regular file system (am building a multi-tenant procurement platform for construction services). The uploaded files get attached to Things and should be privacy gated. Based on my logic I must create the Things that are attached to in a backend workflow. So the users use Mutlifile uploader to upload files and these then are reuploaded with (currently) the Zeroqode plugin to get attached to the Thing created in the backend.
I don’t want to switch to a third party file solution as I’ve already tried it out and it will just add another layer of complexity to the already complex app. That’s why I’m trying to solve it with ‘vanilla’ Bubble File system and custom plugin…