Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify file size? 5mb file says its uploaded but it hasn't.

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 7230 Views
  • TF-35Lightning
    Avatar
    Community Member
    137 Posts

    Uploadify file size? 5mb file says its uploaded but it hasn't. Link to this post

    Hi all,

    Just wondering if anyone knows if there is a file size limit on UncleCheeses uploadify? I have tried uploading files about 5megabytes and the progress bars shows up and run through and close and it feels like it has uploaded like a normal file (all my small files are uploading perfectly) but then the big file is no where to be seen. It's a PDF file by the way.

    Any help would be great

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify file size? 5mb file says its uploaded but it hasn't. Link to this post

    What are your PHP settings for upload_max_filesize and max_post_size? I think the default setting is 2MB, so that would explain it.

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • Heike-san
    Avatar
    Community Member
    52 Posts

    Re: Uploadify file size? 5mb file says its uploaded but it hasn't. Link to this post

    I take advantage that the file size has been raised here to ask my question.
    Is there any way to limit the maximum file size that can be uploaded with uploadify without having to make changes to the PHP settings ?

  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify file size? 5mb file says its uploaded but it hasn't. Link to this post

    $yourUploader->setVar('sizeLimit', 2000000);

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • James Bolitho
    Avatar
    Community Member
    33 Posts

    Re: Uploadify file size? 5mb file says its uploaded but it hasn't. Link to this post

    Hi Uncle Cheese,

    I am having some difficulty getting the 'sizeLimit' variable to work. This is a newbie question so some pointers would be helpful please.

    I would like to set this globally across the cms and really only want this to apply an upload limit to image file uploads. However looking at other posts I am not sure it is that easy. The reason for this approach is due to limitations on the shared hosting that the site is on and the site that I manage is being used by people that are not that web savvy so I would like to prevent them from uploading huge images that would cause problems.

    Reading the documentation on uploadify module I see this but adding it to my code had no effect:
    UploadifyField::set_var('buttonText', 'Click me!');

    What I was hoping was that I would be able to add this:
    UploadifyField::set_var('sizeLimit', 2000000);

    Below is one example of the code that I am trying to get this to work on:

       $sponsorreport = new DataObjectManager(
          $this,
          'Sponsors',
          'Sponsor',
          array(
             'BusinessName' => 'Business Name',
             'Website' => 'Website',
             'Thumbnail' => 'Logo'
          ),
          'getCMSFields_forPopup'
          );
          $sponsorreport->setAddTitle('Sponsor');

           $fields->addFieldToTab("Root.Content.Sponsors",$sponsorreport);

    I am sure that I am missing something really obvious!
    Thanks,

    Jim

  • Zencode
    Avatar
    Community Member
    1 Post

    Re: Uploadify file size? 5mb file says its uploaded but it hasn't. Link to this post

    Thanks for the step in the right direction uncleCheese

    7230 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.