Forums

Upload files to Azure Blob

4Summit 14 Jul, 2018
Hello,

For our website, users can upload a lot of files. is there a way we can directly upload those files into storage such as Azure Blob (or Amazon S3). Our Joomla web app is hosted within Azure. Has anyone done this or know how this could work?
GreyHead 18 Jul, 2018
Hi 4summit,

Please check the Azure docs here or you could possibly use the Azure REST API???

Bob
4Summit 18 Jul, 2018
Thanks Bob.

If i use the Azure Rest API, i would upload the file to the webserver and then re-upload to Azure Blob, correct? Just wanted to confirm if there is a way to do the file upload directly using CC v6
GreyHead 18 Jul, 2018
Hi 4summit,

You'll need to check the Azure docs to see it if they support a direct upload, I think it should be possible. If not you could upload to your server, then re-upload to Azure and delete the copy on your server.

Bob
4Summit 19 Jul, 2018
Thanks Bob. Azure allows a direct upload using their API . I am using CCv6 and the file uploader action, which copies the file to a web server. Is there a way during the file upload action to call the Azure API? my preference is to directly upload, but not sure how to do this.

Also, found this old FAQ for upload to AWS. In the FAQ, it is stated that no direct upload is possible. Not sure if this due to some AWS limitations or Chronoforms limitations.

https://www.chronoengine.com/faqs/63-chronoforms/cfv4/cfv4-working-with-form-data/5196-can-i-save-files-to-aws
GreyHead 19 Jul, 2018
Hi 4Summit,

I'm not very familiar with CCv6 - I assume that it is similar to CFv6 in this respect. In that case I'd load the API library under the CC folder and then you can include the necessary class in a PHP action.

I wrote the AWS FAQ a few years ago and don't now recall the details. I suspect that it is not possible to grab the files from a client and send them directly to AWS without putting them on your server first unless you have some code installed on the client - it may be possible with JavaScript.

Bob
This topic is locked and no more replies can be posted.