function imagepicker_postlet_get_uploaded_file_extension in Image Picker 6.2
1 call to imagepicker_postlet_get_uploaded_file_extension()
- imagepicker_postlet_get_uploaded_file_name in contribs/
imagepicker_postlet/ imagepicker_postlet.module
File
- contribs/
imagepicker_postlet/ imagepicker_postlet.module, line 368 - Enables upload of images using Postlet java applet. http://www.postlet.com/ http://sourceforge.net/projects/postlet/
Code
function imagepicker_postlet_get_uploaded_file_extension($file) {
// postlet sends application/octet-stream so no mimetypes
$fileext = "";
if (strrpos($file, '.')) {
$fileext = drupal_substr($file, strrpos($file, '.'), strlen($file));
}
return $fileext;
}