Hi @miguel. That sounds like an unrelated bug, mind submitting a bug report?
The v5/v6 upgrade only affects file upload size and how we deliver those uploaded files to users. It doesn’t touch anything else (and you can confirm this by downgrading back to v5; the bug will still persist).
Since the upgrade large files i have notice a period of file being uploaded with geturl and I cant seem to access the documents unless its from the editor.
I have notice that same problem with one of my appy.
When I check “Attach this file to” to some file uploader, depending with thing I select to attach, the file being uploaded with geturl and I cant view them.
We just pushed an update to the beta which allows plugin authors to take advantage of the new large file uploads. To use it, you must enable the “Max file size” and “Large file uploads enabled” conditions on your element, and then you get access to a new function (instance.uploadFile) to upload any file that is within the file size specified on that element. This should ensure that app owners are still offered the same security guarantees for their large files, where these properties will be evaluated server-side on upload.
Please try this out and let me know of any feedback!
@sudsy Yes! Here is the documentation for the functions:
uploadFile: function(file: File, callback: function(err, url), [attachTo], [progressCallback: function(num)])
file: A Javascript File object for use in the upload
callback: Once upload completes or fails, this function will be called
attachTo: optional parameter to attach the file to. It has to be a thing in Bubble
progressCallback: if present, will be called with a number from 0 to 1 while file is uploading
This will upload a file of size up to the "Max file size (MB)" property on the element, and only if "File uploads enabled" is true.
Please make sure app owners installing your plugin fill these out.
NOTE: this feature is in public beta.
canUploadFile: function(file: File) - checks if a file can be uploaded, according to the properties
I use the plugin AWS file upload and have quite a few files stored. How do I transition to using this new feature in Bubble (which I very much would like to do since AWS is a bit cumbersome)?
We just pushed another update to this based on requests from @djpapzin, @philledille, and others : The ability to cancel an upload in progress. To do this, just use the new “Cancel upload” action (in “Element actions”) on your file uploader element. You can, for instance, add this action to a button which is conditionally enabled based on the uploader’s “is loading” attribute. Enjoy!
I’m experiencing problems with this new Bubble’s Version, because now it’s “slow” setting CORS rules on new uploaded files.
That means each time I upload a new file, Bubble takes something like 3/5 minutes to set the CORS rules to that file, instead in version 5 it was instant.
So, this is causing problem to a js library I’m using to edit files that is returning a CORS error, until I wait around 5 minutes and then Bubble’s sets the correct CORS rules.
Please, can you dig deeper on this matter? It’s a really hard problem that causes impossibility to update to version 6.