I'm removing the upload folder selection & manually setting the upload folder on the DOM popup for a dataobject. Code below:
public function getCMSFields_forPopup()
$upload = new ImageUploadField('Image');
$upload->uploadFolder = 'Photos';
$f = new FieldSet(
$f->push(new DropdownField('PhotoAlbumID', 'Attach to a Photo Album', $this->profileAlbumsDropdown()));
When you're creating a new object, the upload folder selector is visible. However after saving it, then clicking to edit it in the DOM again, the folder selection is hidden, just like it's supposed to be. What gives?? Why is it displaying the selector at first, but not after creation?