S
S
solalex2015-10-14 21:21:14
1C-Bitrix
solalex, 2015-10-14 21:21:14

Why is such a flexible system like Bitrix not without flaws?

1. Why does Bitrix re-upload it to the upload folder when specifying a link to a file ALREADY located in the web server folder?
2. Why, when changing the original size of the image via CFile::ResizeImageGet, the reduced copy is not deleted when the main image is deleted, and also does not change when the main image is changed?
3. Why can't you use DYNAMIC content for images of DYNAMIC content, as well as images loaded from another source?
3. Why Bitrix does not see images that are not explicitly indicated in the link as jpg, i.e. a link to an image like /image.php?id=123 for Bitrix is ​​not an image!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
O
OnYourLips, 2015-10-14
@OnYourLips

Not devoid of flaws?
This is probably the best compliment to this system. She's just disgusting.

S
Sergey, 2015-10-14
@gangstarcj

On questions, we can say that you are just starting to master Bitrix
1) Because various manipulations occur on the file (resizing, changing the name, changing the quality). The properties of the file are written to the database at the same time.
2) Why should it be removed? Everything is correct, it should not, because. it can be used anywhere.
3) It's not clear what you want. Make the IB property string and fill in the image address there.
4) I don't see this picture either. What is this record anyway? apparently some script processes it and gives it back
PS: You just don't know how to cook it, learn and there will be no such questions. There will be other, more serious ones.

S
Sergey, 2015-10-14
@Logic87

It is advisable to write this to technical support and give us an answer from them here :-)
And don't listen to nurses that Bitrix is ​​disgusting cms .... how much can you write about this already? They wrote a post on Habré about the fact that Bitrix didn’t let some guys celebrate the New Year there. They poured normally, habr is cool. I didn't think they could let that happen.

S
Sergey Goryachev, 2015-10-14
@webirus

It hurts)))
It seems to me that you are asking the question in the wrong place, this is not a Bitrix technical support forum)

D
Dmitry Novikov, 2015-10-14
@dmitriy_novikov

1. it seems irrational, but apparently this approach is the most reasonable in most cases. you can use a property of type "string" to store the address of the picture - then no changes will occur to it.
2. because it is essentially a cache. Are you using CFile::ResizeImageGet in the template instead of referencing a cached image? otherwise it would be stupid.
3. What does "dynamic picture" mean? The desire to use images from someone else's site will disappear when you first need to optimize the site, or when, for reasons beyond your control, all the images on the site disappear.
4. most likely the server's response does not contain the correct headers. those. it all depends on the image generation script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question