Announcement

Collapse
No announcement yet.

Gigantic uploads folder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • shalmaxb
    replied
    I had a look into another installation, where the same happens. Some attachments are related, others not. I do not see a pattern yet.

    Leave a comment:


  • yuri
    replied
    Whenever an Image or File field is written, it should set the Related field in the attachment. For some reason it does not work in your instance.

    Leave a comment:


  • shalmaxb
    replied
    all attachments do not have parent, all orphans do not have parent and related.
    Not orphans have related.

    In the moment I cannot upload new image, as it is a client`s installation.

    Leave a comment:


  • yuri
    replied
    Does the attachment has empty Parent are Related?

    Click image for larger version

Name:	image.png
Views:	120
Size:	9.7 KB
ID:	103701

    Leave a comment:


  • yuri
    replied
    What if you upload a new image? Would it be orphan?

    Leave a comment:


  • shalmaxb
    replied
    Record created 7.3.2024, image uploaded 8.3.2024
    I also looked into the database, this record never had been deleted.
    Last edited by shalmaxb; 03-13-2024, 01:24 PM.

    Leave a comment:


  • yuri
    replied
    In what year was it uploaded? IIRC we didn't store the Related field in the attachment back in the day.

    Leave a comment:


  • shalmaxb
    replied
    yuri, here screenshots from orphans and respective detail view.


    Click image for larger version

Name:	orphans_list.jpg
Views:	186
Size:	48.5 KB
ID:	103678

    Click image for larger version

Name:	image_in_detail_view.jpg
Views:	182
Size:	52.1 KB
ID:	103679

    Leave a comment:


  • victor
    commented on 's reply
    Yes. For moving existing attachments you can use: https://docs.espocrm.com/administrat...ng-attachments.

  • shalmaxb
    commented on 's reply
    yes, image type, upload from GUI

  • Russ
    replied
    Originally posted by yuri View Post
    > it's almost impossible to check data through linux command line

    It's not supposed to. You can check your attachments at Administration > Attachments. You can filter orphan attachments and delete them. Find largest ones.
    thanks

    Leave a comment:


  • yuri
    replied
    In a field of Image type? Did you upload that image via the UI? Or maybe by some automation?

    Leave a comment:


  • shalmaxb
    replied
    I have a custom entity, where I have images. The example, I gave, was one image still in use in one record of that entity, but showed up in orphans, which I thought is for deleted images.
    I only tested with this one image, maybe there might be others marked as orphans, despite still in use.

    Leave a comment:


  • yuri
    replied
    > which is still in use. I can see that by the ID.

    Where exactly it's used?

    > deleted/not deleted

    Not possible. Deleted just not listed.

    Leave a comment:


  • shalmaxb
    replied
    yuri I had a look into that in my app. I can display all attachments or the orphans only. But I see e.g. one attachment (an image) in the orphans list, which is still in use, not deleted. I can see that by the ID.
    It would also be nice to have some more columns in the list view, like ID and deleted/not deleted (like in the MySQL database as 1 or 0).
    Can I modify the list display by editing the json for the list layout? Or wouldn`t you not recommend that?

    Leave a comment:

Working...
X