Forums

Full Version: Why is uploaded file renamed when saved on server
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
(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.

Any particular reason? I'd really like to preserve the filename if possible. Is there a way to do this?

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
(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.

Any particular reason? I'd really like to preserve the filename if possible. Is there a way to do this?

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

Steinm,

It would be nice to rename the file name in the database =)

Att.
(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.

Any particular reason? I'd really like to preserve the filename if possible. Is there a way to do this?

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

It would be nice to rename the file name in the database =)

For what reason?

Uwe
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.

(11-22-2012, 07:51 PM)JimFromAustin Wrote: [ -> ]
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?
But then you still have to fiddle with all the special chars users may use
for their filenames.
(11-22-2012, 07:51 PM)JimFromAustin Wrote: [ -> ]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.
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!

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.

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
(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.
Uwe

Thanks! Not a PHP guy, but would like to learn more, do you have a recommendation for a free, easy to install php debugger?
(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.

Any particular reason? I'd really like to preserve the filename if possible. Is there a way to do this?

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

It would be nice to rename the file name in the database =)

For what reason?

Uwe

Just had this need some time ago.