Jump to:

22977 Posts in 11720 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » There was nothing to upload

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1475 Views
  • Junglefish
    Avatar
    Community Member
    104 Posts

    There was nothing to upload Link to this post

    Hi

    Occasionally, when uploading a PDF or a PPTX, the file upload starts to run and then a small green box appears at the bottom of the page, saying "There was nothing to upload". And the file doesn't upload.

    Anyone know what's going on?

    jf/

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: There was nothing to upload Link to this post

    There are lots of things we can guess at (I would blame the full moon) but try peeking in with Firebug on the Net >XHR tab when this happens. You should be able to see the response in Dev mode that will make it clearer.

  • Junglefish
    Avatar
    Community Member
    104 Posts

    Re: There was nothing to upload Link to this post

    Hi

    Thanks Dale. I've tried that. Comparing the Firebug output from two uploads, one successful and one "There was nothing to upload", I can see no differences. But there is a lot of output to wade through (!) What in particular do you think I should be looking for?

    Apart from that, any other suggestions out there?

    jf/

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: There was nothing to upload Link to this post

    Well this is an odd case with just those file types and not consistently. There are no disallowed extensions by default and it is not throwing the file too big error.

    My guess is that it is something below SS like the php uploads mechanism. Have you checked your PHP settings for uploads to see if anything is out of the ordinary in your php upload section.

    http://www.php.net/manual/en/features.file-upload.post-method.php

  • Junglefish
    Avatar
    Community Member
    104 Posts

    Re: There was nothing to upload Link to this post

    Yep! And the answer is...

    All the offending files were greater in size than PHP's default 'upload_max_filesize' of 2Mb.

    Solution - raise the limit

    A bit embarrassed it never occurred to me to look at what in the end was pretty obvious, but in my defense, that little "There was nothing to upload" message didn't really give me much of a hint. Any chance maybe that could be looked at in SS sometime in the future to prevent other users getting bogged down in the same way? Or maybe the upload interface could state somewhere that there *is* a max size limit, dependent on your PHP settings?

    But anyway, thanks all.

    jf/

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: There was nothing to upload Link to this post

    Yeah, that is kind of a Users 101 error. Glad you got it sorted out, but you may want to submit a feature request to Trac for the changes; http://open.silverstripe.org

    1475 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.