If you receive an error stating "Access Denied" while uploading the File, Please check the Amazon console configuration. 


Navigate to S3 and then check the Block Public Access settings for this account settings.

If the Block all public access is enabled, click edit and change the settings according to your requirements. 

After the settings are saved, you can upload files with access levels as "Public Read" or "Public Read Write".