Hi,
I'm currently retrieving an uploaded file's extension just by splitting the filename split(/\./,$filename). This, however, isn't very efficient as it doesn't take into account that a file might have more than one period in its name. Also, files uploaded from the Windows NT Desktop seem to add some horrible gibberish at the end of the file such as "NTDesktop\etc\etc".
Any ideas on how to retrieve a file's extension?
Thanks,
Ralph
In reply to Getting a file's extension in an upload form by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |