This class handles file uploads in its simplest form.
Located in /legacy/filemanager.class.php (line 18)
An alias to group the images with in a certain application.
Will use active plugin name if left empty.
The allowed extentions for uploads.
Default will load settings from database. Example : jpg,png,gif
Set permission for newly uploaded files.
Default will load settings from database. Example : 0777
Choose the density image will be converted to from pdf.
Convert pdf to image using convert in Linux.
Please note imagemagick needs to be installed on Linux server.
Crop by measure.
Default will load settings from database. [startX, startY, width, height] example (create a 100x50 pixel crop from the top left corner of an image) : 0,0,100,50
Crop from center.
Default will load settings from database. [Crop Size] example (create a 100x100 pixel crop from the center of an image) : 100
The default upload relative path for files.
Default will load settings from database. Example : myupload
This option will shrink a large image to a smaller then original viewable image. This should be larger then a thumbnail in most cases as this is the image the user can see when clicking on a thumbnail.
Default will load settings from database.
Should thumbnails be created on image uploads.
Default will load settings from database.
Add thumb reflections.
Default will load settings from database.
Graphics Engine.
Supports gd, imagick
The group a file batch belongs to.
Will use uploaders primary group id if left empty.
When converting to pdf with multiple pages, image copies will be stored here.
Image quality of converted images.
Default will load settings from database. Example : 80
Should file uploads be logged to the database.
Default will load settings from database.
The maximum allowed file upload size.
Default will load settings from database. Example : 1000 (1kb)
The maximum allowed image upload size.
Default will load settings from database. Example : 1000 (1kb)
Groups file upload by menu id.
Will use active menu id if left empty.
Adaptive adjust resizing.
Default will load settings from database. [Max Width, Max Height] example (resize image to no wider than 250 pixels wide and 250 pixels high thumbnails to be uniformly sized) : 250,250
[Max Width, Max Height] example (resize image to no wider than 500 pixels wide and 500 pixels high) : 500,500 Default will load settings from database.
Resize by pixels.
Default will load settings from database. [Max Width, Max Height] example (resize image to no wider than 250 pixels wide and 250 pixels high) : 250,250
Resize by percentage.
Default will load settings from database. [Percentage] example (reduce the image by 50%) : 50
Groups file uploads to a specific document.
Will use active menu id if left empty.
Typical resize type for thumbnails.
Default will load settings from database. Options : resize | resizepercent | cropfromcenter | crop | adaptive
Reflection options.
Default will load settings from database. Data fields expected are [[Percentage of image], [Reflection percentage], [Transparency of reflection], [Set Border], [Border Color]. Example : 40,40,80,true,#a4a4a4
Holds a record of recently uploaded files.
Simplifies the whole process of uploading files with type=file.
Creates directory according to month and year.
Will delete a whole directory recursively (directory muste be writable).
Deletes a filename.
Delete file logs from database.
Convert numeric into file size.
Enables the caller to download a file to a local writable directory.
Connects to a normal ftp or secure server.
If values left empty system will use PHPDevShell configuration values.
The following is a fully tested function (based on a previous note) that recursively puts files from a source directory to a destination directory. See http://rufy.com/tech/archives/000026.html for more information.
NOTE: Use full path name for the destination directory and the destination directory must already exist
Get filename without extension.
Get a files extension.
Takes a filename and checks what icon needs to go with it.
Load uploaded files from the log database.
Creates unique and safe filename.
Check if multiple images exists converted from a pdf with multiple pages.
This method simply renames the file to unix standards.
Copy file or folder from source to destination, it can do
recursive copy as well and is very smart It recursively creates the dest file or directory path if there weren't exists Situtaions :
Move file from temp directory to specified directory.
Extracts a ZIP archive to the specified extract path
Documentation generated on Tue, 09 Aug 2011 09:04:49 +0200 by phpDocumentor 1.4.3