Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

deleteFile not working, API call stalling #59

Open
refayathaque opened this issue Jun 13, 2019 · 2 comments
Open

deleteFile not working, API call stalling #59

refayathaque opened this issue Jun 13, 2019 · 2 comments

Comments

@refayathaque
Copy link

Hi guys, thanks so much for writing this awesome library. Unfortunately, I have not been able to get the deleteFile working in the same action creator as uploadFile (which works immaculately). Every time I try to invoke deleteFile the API call just stalls, and I am not sure why. Thanks,

@howdyhyber
Copy link

howdyhyber commented Sep 10, 2019

I also experienced this problem. It ends up that I can't delete the photo and it shows Forbidden error though the image URL is viewable in web and existing in s3 bucket.

@geo5745
Copy link

geo5745 commented Sep 7, 2020

I'm encountering the same issue. I believe this is due to a misspelling of the API address for the request in the ReactS3.js file. The deleteFile function has the line ".s3-${config.region}.amazonaws.com , but the dash should be replaced by a dot: ".s3.${config.region}.amazonaws.com" per the API instruction: https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants