You are here

function _ocupload_get_file_extension in One Click Upload 7.2

Same name and namespace in other branches
  1. 7 ocupload.inc \_ocupload_get_file_extension()

Return file extension.

3 calls to _ocupload_get_file_extension()
ocupload_change_files_status in ./ocupload.module
Custom form submit. Change status uploaded files to "permanent".
ocupload_upload in ./ocupload.inc
Upload file.
_ocupload_is_image in ./ocupload.inc
Return TRUE if file extension equal jpg,gif,png,bmp.

File

./ocupload.inc, line 534
One Click Upload includes.

Code

function _ocupload_get_file_extension($filename) {
  return drupal_strtolower(pathinfo($filename, PATHINFO_EXTENSION));
}