JFile is the default library class for handling files upload, copy & delete functions. This can also be used to get the file name, extension and renaming a file while uploading.
Following are the details of functions available that can be used.
Methods:
public static string
getName( string $file ) Returns the name, without any path..
public static string
getExt( string $file ) Gets the extension of a file name.
public static string
stripExt( string $file ) Strips the last extension off of a file name.
public static string
makeSafe( string $file ) Makes file name safe to use.
0 Comment(s)