Page 1 of 1

uploads module issue

Posted: Wed Jul 27, 2011 4:48 am
by dbemowsk
I am using the uploads module in conjunction with the gallery module to let user upload photos. The issue I have is that the upload form is set up to let users change the file name on upload which doesn't take into account the original file extension. So when a user selects a file such as "canon003421.jpg" and tries to give it the name "my_picture", the file is stored as "my_picture" and not "my_picture.jpg". Is there a way for me to preserve the file extension of the original file when a user selects a new name?

Re: uploads module issue

Posted: Wed Jul 27, 2011 2:44 pm
by jmcgin51
I've noticed the same thing. I simply edited the explanatory text to include this: "WHEN RENAMING FILES, BE SURE TO INCLUDE THE FILE EXTENSION."

But having this handled automagically by the software would be a far better method. Shouldn't be too difficult, but I've not looked at the source yet.

Re: uploads module issue

Posted: Wed Jul 27, 2011 9:54 pm
by dbemowsk
I am not sure if it does it, but having it check for special characters in the filename would also be helpful.