ch-a-os / DocSort

Digitize and access everything, everywhere.
GNU General Public License v3.0
0 stars 1 forks source link

Append first and second number and title to filename on download #82

Closed ghost closed 5 years ago

ghost commented 5 years ago

We should add some UID like the objectId to the filename of a file when it's downloaded. The user could store multiple documents of the same title in his download-folder and we don't want to overwrite those. We can/should add the primary and secondary number, like "sql santa_12.2.png".

ghost commented 5 years ago

I was thinking, maybe put the numbers first, like 12.2_sql santa.png and 31.6_my important document.pdf. Also, we should limit the filename because the title itself can be a long text. I would cut the title to a fixed length and add ... like 12.1_this document is very important becau...png or 12.1_this document is very important becau..._.png. I would prefere 12.1_this document is very important becau..._.png i think...

Mondei1 commented 5 years ago

It would be better to limit the title length on creation to like 50 characters. But yes, appending the first/second number at the beginning is a good idea.