Uploading Image to Amazon s3 with HTML, javascript & jQuery with Ajax Request (No PHP)

前端 未结 5 1320
无人及你
无人及你 2020-11-28 00:48

I am developing a website in HTML, javascript & jQuery. I want to upload images to amazon s3 server in an ajax request. There is no such SDK to integrate s3 in Javascrip

5条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 01:30

    You can do this by AWS S3 Cognito try this link here :

    http://docs.aws.amazon.com/AWSJavaScriptSDK/guide/browser-examples.html#Amazon_S3

    Also try this code

    Just change Region, IdentityPoolId and Your bucket name

    
    
    
    
        AWS S3 File Upload
        
    
    
    
        
        
        

    If needed you can use github Link

    I hope it will help others :)

提交回复
热议问题