skydiver / october-plugin-forms

Create easy (and almost magic) AJAX forms
https://octobercms.com/plugin/martin-forms
MIT License
60 stars 41 forks source link

File uploaded on the storage but not displayed in the record and email. #247

Closed zunnurs01 closed 2 years ago

zunnurs01 commented 3 years ago

Hi, I found that the upload only work on the first upload. Then the upload not working anymore. On the storage, the new files uploaded existed. I check the database and found that there is no relationship between the files and the plugin. Please help.

tfprado commented 3 years ago

@zunnurs01 are you overwriting the component markup? I can list out some of the issues I had when using the uploader to see if that helps you! If you are overwritting component markup make sure to use {{ form_ajax(SELF::onFormSubmit) }} instead of a <form data-request="onFormSubmit>, as you wil need the token and session that get added for the uploader plugin to work. I would also make sure your component has all the correct properties

Screen Shot 2021-06-10 at 12 33 03 PM