OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Oro FileType in frontend

This topic contains 4 replies, has 2 voices, and was last updated by  msalmi.kais 4 years, 4 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #32999

    msalmi.kais
    Participant

    Hello,
    I add to the entity customer field “SPGRegistreCommerce” type file via entity managment.
    I added to the builder:

    in the front-end when I submit my form I receive this error:

    how can i fix that ? Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #33000

    Andrey Yatsenko
    Moderator

    Hi.

    Do you use this file input on store-front?

    #33001

    msalmi.kais
    Participant

    yes.
    the idea is to allow the seller to upload their company files from front.

    #33002

    Andrey Yatsenko
    Moderator

    This form type and File entity by itself were not adopted to be used on store-front yet.

    The problem now in this listener \Oro\Bundle\AttachmentBundle\EventListener\FileListener
    You can decorate FileListener to apply logic that will handle situation when token stores CustomerUser instead of User.

    For example you can set owner to the file from CustomerUser->getOwner().

    #33003

    msalmi.kais
    Participant

    Thank you very much. it worked.

Viewing 4 replies - 1 through 4 (of 4 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No