J
J
JohnxFFF2019-11-05 08:09:43
1C-Bitrix
JohnxFFF, 2019-11-05 08:09:43

Does the path to the image change?

I generate an upload file, I get the path to the image:

$image   = $item["FIELDS"]["DETAIL_PICTURE"];
$imageSrc = CFile::GetPath($image);

At the exit:
/upload/iblock/670/6707434e38b335d577d5474e17694a09.jpeg
/upload/iblock/13e/13e18734b4515e81bbc5db959bf9acb0.jpeg
/upload/iblock/388/38898df71a7dce8d2dc8da207c6754ee.jpeg
и тд

that is, not a cache, not a resize.
Pictures open, everything is fine.
But after some time (after a couple of hours / days), all the pictures are 404, and they are not in the files, the paths change.
What could be the reason ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2019-11-05
@gromdron

But after some time (after a couple of hours / days), all the pictures are 404, and they are not in the files, the paths change.

When you upload an image, its path is determined, each time you update the image, its path changes.
For example: upload a catalog from 1C with all the nomenclature every 2 hours, so every 2 hours the path to the image will change

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question