Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

There was nothing to upload


Go to End


6 Posts   1903 Views

Avatar
Junglefish

Community Member, 109 Posts

6 November 2009 at 2:51am

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/

Avatar
dalesaurus

Community Member, 283 Posts

6 November 2009 at 5:27am

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.

Avatar
Junglefish

Community Member, 109 Posts

6 November 2009 at 10:15pm

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/

Avatar
dalesaurus

Community Member, 283 Posts

7 November 2009 at 6:49am

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

Avatar
Junglefish

Community Member, 109 Posts

10 November 2009 at 4:25am

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/

Avatar
dalesaurus

Community Member, 283 Posts

13 November 2009 at 9:18am

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