Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Jan 04, 2012

  1. Ryan White

    More typo ... need to check before commit :)

    authored January 04, 2012
  2. Ryan White

    Fixing typo

    authored January 04, 2012
  3. Ryan White

    Updating _getMimeType to use class_exists

    Fixes #39
    authored January 04, 2012
  4. Ryan White

    Merge branch 'master' of git://github.com/ryantology/upload into HEAD

    authored January 04, 2012
  5. Ryan White

    Updated _getMimeType to use deprecated mime_content_type()

    Trying to figure out why submodule won't commit
    authored January 04, 2012
  6. Ryan White

    Updated _getMimeType to use deprecated mime_content_type() for php ve…

    …rsion < 5.3
    
    References Issue #39
    authored January 04, 2012

Dec 17, 2011

  1. Jose Diaz-Gonzalez

    fixed some test calls

    authored December 17, 2011
  2. Jose Diaz-Gonzalez

    Allow to specify sub folders of thumb size. Closes #32

    Uses the `{size}` and `{geometry}` key to figure these two out. Also added a way to configure thumbnail renaming as it might not be useful to some people to have the `{size}` displayed both in the directory path and the filename.
    
    Also renamed two options, `thumbsizes` and `thumbnailPrefixStyle`, in order to consolidate the thumbnail settings
    authored December 17, 2011

Dec 15, 2011

  1. Jose Diaz-Gonzalez

    Allow disabling file upload as a requirement to certain validation rules

    Note that it was implemented in this way to:
    
    - Maintain backwards compatibility
    - Provide a hook that can be bypassed for testing
    - Simplify testing for isFileUpload validation rule
    
    Also added some sanity checking to the isBelowMaxSize/isAboveMinSize validation rules.
    
    Closes #16 and #26
    authored December 15, 2011
  2. Jose Diaz-Gonzalez

    Refactored path generation

    It was previously impossible to change what the root directory of the file uploads would be, and was hardcoded to the APP_DIR.  As such, mount points would be needed inside of the application, or symlinks, which gets messy during deploys.
    
    Also simplifies the pathing code so that writing tests and changing path functionality can be done in a single place - UploadBehavior::_path()
    
    Closes #27
    authored December 15, 2011
  3. Jose Diaz-Gonzalez

    split up create/output handlers for php resize method

    authored December 15, 2011
  4. Jose Diaz-Gonzalez

    Fix thumbnailType issues

    - Use getImageFormat() method from imagick to determine the image type
    - Properly set the default thumbnailType for both imagick and php resize methods
    
    Closes #31.
    authored December 15, 2011
  5. Jose Diaz-Gonzalez

    Fix call-time pass-by-reference

    authored December 15, 2011

Dec 04, 2011

  1. Jose Diaz-Gonzalez

    Merge pull request #28 from hiryu85/patch-1

    FIX __resizePhp(): create a thumbnails without extension (and $image->se...
    authored December 03, 2011

Nov 18, 2011

  1. FIX __resizePhp(): create a thumbnails without extension (and $image-…

    …>setImageFormat is only for imagick resize method.)
    authored November 18, 2011

Oct 28, 2011

  1. Jose Diaz-Gonzalez

    $pathinfo => $pathInfo

    authored October 28, 2011

Oct 24, 2011

  1. Jose Diaz-Gonzalez

    Merge pull request #25 from sdoney/misc

    Fixes for file thumbnail deletion that was broken when thumbnailType was added
    authored October 23, 2011
  2. sdoney

    Adding some additional tests for prepareFilesForDeletion

    Add testPrepareFilesForDeletionWithThumbnailType
    With thumbnailType set to 'jpg'
    
    Add testPrepareFilesForDeletionWithMediaFileAndFalseThumbnailType
    With thumbnailType set to false and as Pdf file
    
    Add testPrepareFilesForDeletionWithMediaFile
    As Pdf file
    authored October 23, 2011
  3. sdoney

    Added tests for isMedia()

    authored October 23, 2011
  4. sdoney

    getting exceptions when checking for the mime type

    telling it to inculde _getMimeType  in the list of methods and
    what to return for _getMimeType so that it doesnt fail when
    there is no file to test it with.
    
    Do mockUpload for testPrepareFilesForDeletion so that the
    return values of the methods within can be controlled
    authored October 23, 2011
  5. sdoney

    Was failing to set the file extension on non-media files due

    to the usage of 'filename' which does not have a file extension
    
    Changed to 'basename' if no thumbnailType chosen.
    authored October 23, 2011
  6. sdoney

    Created mime type method so that the return value

    can be set in test easier
    authored October 23, 2011
  7. sdoney

    Use the behavior's _pathinfo method instead of php's

    authored October 23, 2011

Oct 23, 2011

  1. sdoney

    update readme with _isMedia changes

    authored October 23, 2011
  2. sdoney

    Moving _mkPath call on thumbnailPath up further so that it

    only needs to be called once.
    authored October 23, 2011
  3. sdoney

    delete thumbnail files with the records

    Use mime type to determine if file isMedia
    Get thumbnailType to build extension of thumbs
    authored October 23, 2011
  4. sdoney

    This causes // for me, revoving extras DS.

    authored October 23, 2011
  5. sdoney

    File deletions for thumbnails were failing becuase of the

    thumbnailPath changes.
    
    Modifications made to check mediaThumbnailType and
    thumbnailType to remove the correct files upon deletion.
    authored October 23, 2011
  6. sdoney

    Setting destFile a better way.

    Removed extra $pathInfo.
    Added thumbnailType to 'php' thumbnailMethod.
    authored October 23, 2011
  7. sdoney

    Check for Media types instead of just pdf. Done using _isMedia.

    authored October 23, 2011
  8. sdoney

    Allow creating thumbnails for Media types also.

    authored October 23, 2011
  9. sdoney

    Adding isMedia to check similar to how isImage does.

    authored October 23, 2011
  10. sdoney

    adding mediaTypes to cover types other than images

    authored October 23, 2011
  11. Jose Diaz-Gonzalez

    fixed issue where thumbnailPath was not being respected

    authored October 23, 2011
  12. Jose Diaz-Gonzalez

    removed unnecessary conditions from resize methods

    authored October 22, 2011
Something went wrong with that request. Please try again.