Hello, Due to security reasons, the manipulation of file content is not allowed. could you tell me if you are using the Bootstrap 3 Forms designer in order to setup your file field, or are you using a regular file field?
31 May 2016 15:03:56 Herve de Brabandère 7ok sprl replied:
Hello Teodor, I'm using Bootstrap 3 Forms designer (nice tool) in order to setup my file field. I don't want to manipulate file content. I have a single page. In the upper part i have a form with just the file field, a multiple pictures preview and a submit button. In the lower part i have a already loaded pictures gallery. When i submit the form i don't want to reload the page, i just use a behavier to refresh pictures list. Then in the lower part i see all pictures including just loaded images, that's ok. But in the upper part names of the already uploaded files are always displayed in the fiel field; to clean those names a use a javascrit on successful upload behavior : document.forms['form_name'].reset() . This do the job. On the other hand just uploaded images previews are always diplayed under the empty file field and i don'nt know how to clear this preview. Regards