Announcement

Collapse
No announcement yet.

Show attachments file extension in /data/upload directory

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

  • Show attachments file extension in /data/upload directory

    Hello,

    I would like to know if it is possible to show the file extension (e.g. .jpg o .pdf) of the attachments uploaded to EspoCRM.
    For example: images currently appear as /data/upload/<random-string>, but having the option to show them as /data/upload/<random-string>.jpg (for example) would mean that administrators could run optimizations (such as compression) on the files, in order to save bandwidth, disk space and time.

    Looking forward to your next reply!
    Have a nice day.

  • #2
    you can find attachment file extension in the database table attachment.
    id field is a file name

    Comment


    • #3
      Yes. So all I should do is download the files, append their respective file extension, optimize them, rename them back to their original name and finally upload everything to /data/upload.
      Thank you.

      EDIT:
      I tried the steps above, and I have to report that appending the file extension corrupts the files.

      Click image for larger version  Name:	Cattura.PNG Views:	1 Size:	639.2 KB ID:	41735
      Last edited by agenzialife; 08-27-2018, 08:53 AM. Reason: added results

      Comment

      Working...
      X