Skip to content

Releases: Rundiz/upload

v2.0.3

11 Oct 09:44
@ve3 ve3
Compare
Choose a tag to compare
  • Add max image dimensions support.
  • Improve security scan for a little.
  • Use throw an error instead of silence skip it for invalid type for input file name argument.
  • Add more unit tests.
  • Add more option for http test.

v2.0.2

22 Dec 08:42
@ve3 ve3
Compare
Choose a tag to compare
  • Fix to check file extension and mime type in case insensitive.

v2.0.1

21 Dec 07:18
@ve3 ve3
Compare
Choose a tag to compare
  • Change the way to set any error message into setErrorMessage()
    method.
  • Add error_codes property for use with your own translation. You can
    read more description in this property for all available error code and
    its translation or you can still use the old error_messages property.

Example for error_codes array format.

array(
    index => array(// the `index` will be the same as it is in error_messages property.
        'code' => 'RDU_1',// this will be error code, start with RDU_ and follow with number or short error message without space. it is easy for check and replace with your translation.
        'errorAttributes' => 'string',// this key contain error attributes as string
            // for example: 9MB > 2MB in case that limit file size to 2MB but uploaded 9MB, or showing file name that have problem.
            // this key may contain empty string so check it before use.
        'errorFileName' => 'filename.ext',// the file name with extension that cause error message.
            // this key may contain empty string.
        'errorFileSize' => '12345',// the file size in bytes.
            // this key may contain empty string.
        'errorFileMime' => 'mime/type',// the file mime type.
            // this key may contain empty string.
    )
)

v2.0

05 May 05:16
@ve3 ve3
Compare
Choose a tag to compare

Write the whole new source code.

  • Upload single file or multiple files
  • Validations
    • allowed file extensions
    • matched mime type
    • max file size
    • security scan
    • reserved file name
    • safe for web file name
  • Detect the errors and tell you so you can easily to solve it.

Requirement:

  • PHP 5.3+

v1.0

12 Oct 04:50
@ve3 ve3
Compare
Choose a tag to compare

Project since 2011-08-25