V
V
Vitaly2021-07-28 12:52:47
PHP
Vitaly, 2021-07-28 12:52:47

Why can't a third-party service download a picture from our website?

An export file is formed on our server, it contains the paths to the pictures
https://mysite.ru/upload/iblock/99a/99aa41242c6ae3...
The picture at the link opens in the browser.
This file is used by about 10 third-party services and no one has problems accessing the picture.
except for one service that can't access the picture.
here are my nginx logs:

2021/07/23 02:54:45 [error] 25360#0: *347749 open() "/home/bitrix/ext_www/mysite.ru/upload/iblock/d4d/eiapah7a9eaic2lzq9d255az3s5qrry1.JPG)" failed (2: No such file or directory), client: 178.120.160.252, server: mysite.ru, request: "GET /upload/iblock/d4d/eiapah7a9eaic2lzq9d255az3s5qrry1.JPG) HTTP/1.1", host: "mysite.ru"

This file is physically located in the /upload/iblock/d4d/eiapah7a9eaic2lzq9d255az3s5qrry1.JPG folder.
Is this a problem on my side with the nginx settings, for example, or is this problem on the side of a third-party service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya, 2021-07-28
@vcherepko

There is a suspicion that the problem is in the extension (JPG with a capital letter).
In general, if nginx throws an error, then check your service. It's strange that all 9 work, but the 10th does not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question