silverstripe-labs/silverstripe-dms — pull request #24 by ss23 (2013-09-10 09:06:41+00:00)
Title: FIX Don't show the upload field when inappropriate

This fix is quite ugly, but in theory, it's fine. By ugly, I mean the interface is kind of weird without it.
Because 3.1 allows uploading when a DataObject doesn't exist, we need to override the new defaults to not allow such if the DO isn't saved yet.

Testing for this would be much appreciated. It seems okay to me, but I can imagine some edge cases.