Advertisement:

Author Topic: Attachments .dat file ?  (Read 204 times)

Offline gevv

  • Full Member
  • ***
  • Posts: 613
  • Gender: Male
  • ElkArte powerful forum software
    • elkarte on GitHub
    • https://www.elkarte.net/
Attachments .dat file ?
« on: February 19, 2021, 10:26:42 AM »
Hello,

when a file is attached to the post or topic


there are two of the same file one has the extension .dat 

sample

upload  image.jpg

1_bc15ef5381615ef185896badfab8b5.dat  ---  10kb
1_bc15ef5381615ef185896badfab8b5  ----   10kb

why a copy of a file is created ?


ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Offline shadav

  • Support Specialist
  • Sophist Member
  • *
  • Posts: 1,278
  • Gender: Female
    • shadav on Facebook
    • leashadav on GitHub
    • Ask The Muslims: A Place To Ask Honest Questions and Receive Respectful Answers
Re: Attachments .dat file ?
« Reply #1 on: February 19, 2021, 01:36:38 PM »
my guess would be if you are using a mod and in the attachment settings you have checked the box for the mod that says
Keep backup of original image file when resizing

Offline shawnb61

  • Dev. Team Mentor
  • Developer
  • SMF Hero
  • *
  • Posts: 3,113
    • sbulen on GitHub
Re: Attachments .dat file ?
« Reply #2 on: February 19, 2021, 02:23:16 PM »
The .dat extensions are used in 2.1.  There is no extension in 2.0. 

My suspicion here is that you tested an upgrade of 2.1, restored files (without deleting first), and thus the .dat from the 2.1 conversion is still laying around. 

(I have definitely done this before myself! ;D)
« Last Edit: February 19, 2021, 02:36:51 PM by shawnb61 »
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Offline gevv

  • Full Member
  • ***
  • Posts: 613
  • Gender: Male
  • ElkArte powerful forum software
    • elkarte on GitHub
    • https://www.elkarte.net/
Re: Attachments .dat file ?
« Reply #3 on: February 19, 2021, 03:11:19 PM »
yes conversion problem  thanks.

opening post attacment no problem (.dat without extension)

but error log occurs


/index.php?action=dlattach;topic=8262.0;attach=11142
/Sources/ShowAttachments.php (Line 204)


2: md5_file(attachments/11143_6068b3379684f72749537dd4796e6e471cd91ef.dat): failed to open stream: No such file or directory
ElkArte is a modern, powerful community building forum software. https://www.elkarte.net/

Offline shawnb61

  • Dev. Team Mentor
  • Developer
  • SMF Hero
  • *
  • Posts: 3,113
    • sbulen on GitHub
Re: Attachments .dat file ?
« Reply #4 on: February 19, 2021, 04:29:19 PM »
Is this 2.0 or 2.1? 

In 2.0, there should be no extension...
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp