Peekay wrote:
A nice solution, but users will need to check their hosts config to ensure pathinfo is enabled. Some Windows servers do not support this without a plugin.
Also, Xoops Protector will block uploads of multiple-dot files.
Quote:Attempt to multiple dot file my.new.file.txt
To be honest, although you can use periods in filenames, I imagine those that do have a very frustrating time uploading anything to the internet.
I agree with your point about the use of periods in filenames but this is not a problem in my case. Just to clarify my point where I said "You can then adjust the rest of the code to use $fname and $ftype as appropriate.". I actually scan the $fname and replace certain special characters that might cause problems. These include the single apostrophe (') which I change to (`). I also change any instances of the period to underscore (_).
The filenames used for storing the image files will no longer be the same as entered by the user but this is not an issue because users get to work with photo titles and the filenames should be transparent to them.
Melbourne, Australia