jalik / meteor-jalik-ufs-local

Local file system store for UploadFS
MIT License
8 stars 5 forks source link

Inconsistent names of files saved on the disc (with and without extensions) #3

Open jalik opened 7 years ago

jalik commented 7 years ago

@dufia said :

Let me quickly explain what I am doing. I have images stored on the server (UploadFS.store.Local) and I want to access them directly via NGINX. Excluding Node.js from the process, because it stresses the CPU.

I save my files with both .importFromURL and new UploadFS.Uploader. To my surprise, some files saved on the server have extensions and some don't. Actually, files saved with .importFromURL look like this iawHC3o4QtMLqSH68.png and with new UploadFS.Uploader like this herRwCzkBMza98yWL.

I guess I could work around it by storing some additional data on the document but It creates unnecessary confusion. Is there a way to make it consistent? One way or another. Thank you! :)

jalik commented 7 years ago

@dufia Currently I cannot change this behavior without breaking file links in existing apps. I'll come back to you when I'll have found a solution.

dufia commented 7 years ago

@jalik thank you