antpre Posted September 12, 2020 Share Posted September 12, 2020 Hi, I am trying to run a script on my processwire installation (custom admin page). This script has to work with external files (hosted on S3). The php fopen command returns a "failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request " On my php ini the allow_url_fopen is on . I guess it is not an issue with php conf If I copy the url of the file I am trying to open, in a browser, I can access the file. I guess it is not a permission issue on the S3 bucket. Any idea would be welcome Thanks a lot Link to comment Share on other sites More sharing options...
Macrura Posted September 12, 2020 Share Posted September 12, 2020 Maybe S3 doesn't support fopen (?), i use this for getting files from S3 (though the files are protected); https://css-tricks.com/snippets/php/generate-expiring-amazon-s3-link/ Link to comment Share on other sites More sharing options...
antpre Posted September 14, 2020 Author Share Posted September 14, 2020 OK thanks for your response, I ll check that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now