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.

Form Questions /

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

Issues when using UploadField


Go to End


959 Views

Avatar
Nobi

Community Member, 5 Posts

27 October 2012 at 7:46am

I am using UploadField on a Dataobject editor with getCMSFields()

There is some issues when Create New Data. I upload a file when this new data have not been save. Its shows success upload like the screenshot I've attached.

But when, I back to the Grid list form, then I edit the last created data, it is show me no image uploaded in UploadField input.

I don't know why, but I guess the first image uploaded failed to linked to Dataobject because it's don't yet exist. When I save it, the Dataobject ID was created, and when I upload an image it success to linked Dataobject ID and Image file ID.

Its supposed to be an easy task, I just want to disabled UploadField when the data has not been created yet, but in SS 3.0 I doesn't have idea how to do this ?

Can anyone help me to solved this ?

Thanks.

Attached Files