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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

UploadField: can't select filed uploaded through Files Tab

Go to End

8 Posts   1824 Views


Community Member, 135 Posts

16 September 2012 at 9:28am


when I click 'From Files'

I can't select any images I uploaded through the general 'Files' tab

I think it's the same problem as this post:

Syncing the files doesn't help. I also tried upgrading to the latest 3.0.1 rc, but that didn't help either.


Community Member, 135 Posts

17 September 2012 at 10:22am

I get the files that were added through the files tab now.

I i first removed the uploadfield and then added $upload_field->relationAutoSetting = false; to my getCMSFields,

However when I select a file now, it dissapears when I click save on the dataobject

In UploadField, I think I'm getting an empty result from getItems when I try to add an existing image that wasn't added from the gridfield/relation.


Community Member, 135 Posts

17 September 2012 at 5:03pm

What is weird is that the data saved to the DB, just not retrieved in the back end and front end.
Here is the code I'm currently using.


Community Member, 135 Posts

17 September 2012 at 6:26pm

OK, so attaching files only works if the file has class ExtraImage (which I use to do some custom cropping)


Community Member, 135 Posts

17 September 2012 at 7:47pm

It works if I use the general 'Image' in 'Attachment'. Then, I can't add my custom resize functions, however.

I tried adding custom functions through DataExtension, but that doesn't seem to work either


Community Member, 44 Posts

4 December 2012 at 10:46pm

I can verify with 3.0.3 I have the same issue. Images uploaded to folders are not shown when "from files" is chosen. No images are shown at all in any folder. Until I change the image class from WhateverSubClassImUsing_Image to plain Image. That makes me lose all resize options, as stated above.

I've also tried every sync possible, but to no avail. This is a showstopper bug for me.


Community Member, 97 Posts

11 December 2012 at 1:16am

I got nearly the same problem.

I extends UserDefinedForm (which is a page) so that I can add an image banner. When I clicked 'From File', the grid shows the wrong headings with

'Email', 'Email Subject'.

All the images in the Uploads folder are listed but I don't see the files names, they are all blank. The pagination still works. All i see just rows of blank information.

I think SS messed up when try to load the right objects.

Polar Design

Community Member, 2 Posts

28 June 2013 at 1:55am

Any update on this bug? I'm experiencing the same exact issue. Hopefully some resolution or workaround has been found since you all reported it 6+ months ago...? Thanks in advance!!