![]() |
Why is uploaded file renamed when saved on server - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: General Questions (https://community.letodms.com/forumdisplay.php?fid=15) +--- Thread: Why is uploaded file renamed when saved on server (/showthread.php?tid=591) |
Why is uploaded file renamed when saved on server - JimFromAustin - 11-22-2012 Hello from Austin! I have a general question about uploaded files. For example, when I upload a file named invoice.pdf, it is renamed 1.pdf once it reaches the server disk drive. Any particular reason? I'd really like to preserve the filename if possible. Is there a way to do this? Thanks a bunch! Jim Great product! Just what I've been looking for. I tried it a while back (maybe a year) and it wasn't nearly as nice as it is now - nice improvements guys! RE: Why is uploaded file renamed when saved on server - steinm - 11-22-2012 (11-22-2012, 12:38 AM)JimFromAustin Wrote: I have a general question about uploaded files. For example, when I upload a file named invoice.pdf, it is renamed 1.pdf once it reaches the server disk drive. There is a simple reason for it. Any DMS needs a structured way to save the documents. Something, the software can rely on. That's way letodms creates a directory for each document and puts any version of a document into a file named <version>.<filetype> If a file invoice.pdf was saved under the same name, how would you call a new version of that file with the same name? BTW, letodms keeps the original file name in the database. Uwe RE: Why is uploaded file renamed when saved on server - kafran - 11-22-2012 (11-22-2012, 03:13 PM)steinm Wrote:(11-22-2012, 12:38 AM)JimFromAustin Wrote: I have a general question about uploaded files. For example, when I upload a file named invoice.pdf, it is renamed 1.pdf once it reaches the server disk drive. Steinm, It would be nice to rename the file name in the database =) Att. RE: Why is uploaded file renamed when saved on server - steinm - 11-22-2012 (11-22-2012, 06:40 PM)kafran Wrote:(11-22-2012, 03:13 PM)steinm Wrote:(11-22-2012, 12:38 AM)JimFromAustin Wrote: I have a general question about uploaded files. For example, when I upload a file named invoice.pdf, it is renamed 1.pdf once it reaches the server disk drive. For what reason? Uwe RE: Why is uploaded file renamed when saved on server - JimFromAustin - 11-22-2012 Quote:If a file invoice.pdf was saved under the same name, how would you call a new version of that file with the same name? Maybe: invoice.1.pdf invoice.2.pdf invoice.3.pdf and so on. Hadn't thought the problem thru, but it does make me wonder how SVN performs this task. Quote:BTW, letodms keeps the original file name in the database. I just discovered the Archive creation tool. This is very handy. Thanks! My main concern is forward looking. Should letoDMS stop development (lets hope it never does!) then I would be forced to abandon it as a tool and would need to be able to get those files in their original formatted names. The Archive creation tool alleviates a lot of this fear. RE: Why is uploaded file renamed when saved on server - steinm - 11-22-2012 (11-22-2012, 07:51 PM)JimFromAustin Wrote:But then you still have to fiddle with all the special chars users may useQuote:If a file invoice.pdf was saved under the same name, how would you call a new version of that file with the same name? for their filenames. (11-22-2012, 07:51 PM)JimFromAustin Wrote: Maybe:svn has a similar approach like letodms. (11-22-2012, 07:51 PM)JimFromAustin Wrote: I just discovered the Archive creation tool. This is very handy. Thanks! For a php programmer it shouldn't be a problem to read the database and extract the files. The schema is actually quite simple. Uwe RE: Why is uploaded file renamed when saved on server - JimFromAustin - 11-22-2012 (11-22-2012, 08:54 PM)steinm Wrote: For a php programmer it shouldn't be a problem to read the database and extract the files. The schema is actually quite simple. Thanks! Not a PHP guy, but would like to learn more, do you have a recommendation for a free, easy to install php debugger? RE: Why is uploaded file renamed when saved on server - kafran - 11-23-2012 (11-22-2012, 06:47 PM)steinm Wrote:(11-22-2012, 06:40 PM)kafran Wrote:(11-22-2012, 03:13 PM)steinm Wrote:(11-22-2012, 12:38 AM)JimFromAustin Wrote: I have a general question about uploaded files. For example, when I upload a file named invoice.pdf, it is renamed 1.pdf once it reaches the server disk drive. Just had this need some time ago. |