Jump to:

2012 Posts in 1438 Topics by 621 members

Form Questions

SilverStripe Forums » Form Questions » Issues when using UploadField

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

Page: 1
Go to End
Author Topic: 293 Views
  • Nobi
    Community Member
    5 Posts

    Issues when using UploadField Link to this post

    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 ?


    Attached Files
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.