Select multiple files for upload

27 Mar '14, 09:40 AM
21,354 Views
Forum Forum Starter - Level 2

Hi,

How can i make input blob fields allow select multiple files at once and upload them using multiple attribute on input[type="file"] tag?  http://www.wufoo.com/html5/attributes/08-multiple.html . Also it must work with ajax.

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

Hi,

Have you tried using multiple form unit?

 
x 0
Forum Starter - Level 2

Yes, but it will not allow you to select multiple files in the browser's file selection dialog. I mean the html5 thing: select multiple files for the same/one input tag.

 
x 0
Forum Expert - Level 5

Hi,

 

You must create a style blob like this example http://blueimp.github.io/jQuery-File-Upload/basic.html, when you click on your link should send a string of string and put a unit script to separate them in a list, you can use create  unit that is pointing the bulk option to save the files

 
x 0
Forum Starter - Level 2

Thanks but i already have my own complicated styling and i wan just the attribute multiple to be working. If i do this <input type="file" name="fld1" multiple > it gives an error when submitting the form like this:

ERROR TP-Processor3 com.webratio.units.content.rtx.EntityBasedMultiEntryUnitService - []Unable to populate the form bean fragment related to the unit miu89meu8
java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.apache.struts.upload.FormFile
    at com.webratio.units.content.rtx.MultiEntryUnitService.populateFields(MultiEntryUnitService.java:630)
    at com.webratio.units.content.rtx.EntityBasedMultiEntryUnitService.populateFields(EntityBasedMultiEntryUnitService.java:757)
    at com.webratio.struts.WRPageFormBean.populate(WRPageFormBean.java:194)

....

I need this to be working.

 
x 0
Forum Starter - Level 2

Why wouldn't WebRatio recognize such fields and just return array of RTXBLOBData ?

 
x 0
Answer at this question and get points!

Related questions

Ajax and FCK Editor (WebRatio 5.x) Ajax onchange and jQuery 2.x (with migrate plugin) incompatible Ajax on change selection field and modify units Autocomplete template Automatic date in form Automatic file upload BPMN: URL field ckeditor - change directory for the browser Clean a form Como crear cambio de contraseƱa Como tener dos botones juntos en un formulario independientes de una accion? Como usar la funciĆ³n autocomplete en un field Compare with the current time coupled mandatory fields Cryptic error when submitting a form Disabilitare campi durante evento AJAX Drop down menu question Dudas sobre modelado(Data Flow,Forms y Operation Create) Dynamic attribute/field names. Possible? Dynamic instantiation of fields on a page for any Class type Empty record mistakenly saved entry form logic. Entry Unit - Default field timestamp Entry Unity, Field Date Type Error Field as link soruce Form element Form template Getting the absolute path of a RTXBLOBData Hide form until a flow is triggered Hiding form components based on page conditions Hierarchy component How I can receive the primary key value after adding into database from OK Port. How to redirect to the correct site view after a successful login attempt input mask Multi Entry Unit: How to forward only checked rows? Multi-Image Upload Multiple forms on one page. HTML5 input attributes. Possible? (2 questions) multi selections field problem Multi Selects didn't work in update page Prelevare la chiave del record da una Selection Field in una Multiple Form Problem saving multi selection from input Progress bar when uploading big file(s) in a form? Pulire URL Redirecting users to another site view Resize fields Search by Selector component does not work selection fields on cascade Setting Upload directory Showing items that have a relation with an entity Slot in Selection Field Update fields based on selection of other fields Updating attributes of an entity upload file and the move it to other location upload file html Uppercase Uso de la componente chart de webRatio Validacion validation fields Value Length (Min) fails to validate when field is empty? WebRation - Create Navigation diagram What are the new features of WebRatio 6.1? which of these three models is closer to webratio/ifml way of creating web applications