I’d like files uploaded directly to Amazon S3 or to DigitalOcean Spaces as opposed to a local folder within my site directory.
My reason for wanting to do this is that I’d like for uploaded files to be encrypted at rest and I believe Amazon S3 and DigitalOcean Spaces (or DigitalOcean Block Storage Volumes) offers encryption at rest out of the box.
Is there a way that I can set my upload path to a folder that is outside of my site directory?
Thanks for upgrading this to a feature request, @George!
Also, being able to download files from a folder outside of the site directory would go along very nicely with an upload feature like this. I believe there is a version of that already being discussed on another feature request thread.
Any news on this @George? Is there a chance this will be implemented anytime soon? As a BIG fan and user of DO Spaces this would be a major addition to the Wappler feature list in my opinion and I am sure I am not the only one that thinks so!!
I think also an important design decision is where exactly the upload takes place.
Currently you have a form with upload on it that just upload to your server connect action and process the file on your server.
But now with an external upload we have two choices:
Upload from the form straight to S3, retrieve the uploaded success token/path and then repost the form you your own server connect action with the upload full url as entry. This will result in single file upload, but we will have to update the whole form posting logic in app connect to handle such case.
Upload the form to your server connect first, with the file upload and then from your server repost it to the external s3. This will result in double file upload and also on Linder running of the server action as it needs to upload again. But we don’t need to change the upload form process at the client as it stays the same.
So ideally we would like to choose solution 1 but not sure if it will cover all possible upload cases.
Also there is a need for upload/post of server side files to external api services which will be covered with solution 2, but also have the same troubles as long running server side actions due to upload