Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
File extensions in uppercase ... https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1457 |
Page 1 of 1 |
Author: | Meersie [ 26. Mar 2008, 12:49 ] |
Post subject: | File extensions in uppercase ... |
Hi Michael, I've been cruising through this forum for a while now but did not find an answer to the problem I'm having. My TFU works great - just updated to version 2.7 and all is fine. The only problem I've been having (also with previous versions) is that TFU ignores files in capitals. In short : DCS10003.JPG will not be uploaded to my server unless I change .JPG to .jpg. Is this an option that I can change in the config file? I don't really see it in there ... |
Author: | TinyWebGallery [ 26. Mar 2008, 13:44 ] |
Post subject: | |
no - I just checked the code. this was a mistake I made - I converted the extension list to lowercase but forgot to do this for the file names as well. I already changed this in my local build and this will be available in 2.7.0.2 /Michael |
Author: | Meersie [ 26. Mar 2008, 13:56 ] |
Post subject: | |
Thanks Michael! Any idea when this will be available? |
Author: | TinyWebGallery [ 26. Mar 2008, 14:05 ] |
Post subject: | |
just checked again. I can upload files with e.g. JPG. Which OS do you have on your client? If you choose all file types in the dropdown can you then select it? Means - you you get the message that you cannot upload it because of the extension or can't you select it at all? /Michael |
Author: | Meersie [ 26. Mar 2008, 14:16 ] |
Post subject: | |
Michael, Your remark on checking if everything is lowercase rung a very loud annoying bell. The problem was entirely on my side. I do a check on extension before I push the filename in the database. I wasn't checking on a lowercase extension there. Once I changed that into strtolower($extension) all things went smooth. Sorry for the inconvenience and thanks for this killer application! |
Author: | TinyWebGallery [ 26. Mar 2008, 14:19 ] |
Post subject: | |
but back to my question - are upper case files shown in the select box? And are you running e.g. Linux or something? /Michael |
Author: | Meersie [ 26. Mar 2008, 14:22 ] |
Post subject: | |
I can select uppercase files and they do show up like they should in the upload box. Filesize and date are correct. I am on OSX, our server runs Linux RedHat. M. |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |