Closed oleibman closed 1 month ago
The image you linked loads correctly to me.
Yes, it loads correctly in a browser, and in Excel. But the following command gets a 403:
php -r "file_get_contents('https://phpspreadsheet.readthedocs.io/en/latest/topics/images/01-03-filter-icon-1.png');"
This had worked correctly till yesterday. The Php release is unchanged.
Ah OK. Unfortunately, I can't help you with PHP. You will need to debug this more deeply to understand what's going on behind the scenes. If there is an issue with that URL we can fix it, but you will need to isolate the problem outside PHP.
Thank you for the suggestion. I have raised the issue with Php (see linked issue above), and they have a suggestion which seems to work. I am waiting for more details, but you appear to be off the hook.
I am still befuddled by what changed, but don't see a reason to keep the issue open.
Details
Expected Result
We have an Excel spreadsheet that points to an image https://phpspreadsheet.readthedocs.io/en/latest/topics/images/01-03-filter-icon-1.png Excel opens this file, including the image correctly. Until today, PhpSpreadsheet did as well (by using file_get_contents on the URL). Today, we get error 403 -
Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
. We also get such an error usingstable
ormaster
instead oflatest
. Can you tell us what happened to cause this problem?Expect result = read file contents.
Actual Result
Error 403.