Skip to content

File picker - multiple files. #183

Description

@username1565

Is this possible to select multiple files, here: https://github.com/moxiecode/moxie/wiki/File-Picker

<input type="file" multiple="true">
I see hidden input-element in HTML of this code, without multiple-attribute,
when I running this code: https://github.com/moxiecode/moxie/wiki/File-Picker
I did try this:

accept: [
	{title: "Images", extensions: "jpg,gif,png", multiple: "true"} // accept only images
]

But not working...
I see, this is available, in moxie.js, here:

Line 7176: shimContainer.innerHTML = '<input id="' + I.uid +'" type="file" style="font-size:999px;opacity:0;"' +
Line 7177: (_options.multiple && I.can('select_multiple') ? 'multiple' : '') +

But I don't know how to activate this...

If this is possible to working with multiple files, can you add the info, as example
here: https://github.com/moxiecode/moxie/wiki/File-Picker ???

I did go to moxie, from here:
https://stackoverflow.com/questions/30727052/file-constructor-in-ie-and-safari
by searching polifyll-function for new File()-object, because I cann't call new File().
I see the an error in console.log of my browser:
Uncaught TypeError: Failed to construct 'File': Illegal constructor

I general, I just want to add text inpututed dataURL to input[type=file] as element for upload.

Is there the better solution for input[type=file multiple="true"]?
For example, dataURL or base64 is pasted in textarea,
then, file added with random name to file-input,
and then this MULTIPLE files available for uploading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions