problems uploading two or more images with uploader

Comments

4 comments

  • Avatar
    Aditi Madan

    Hi Alejandro,

    Cloudinary uploader only accepts one file at a time, you can loop over the resources and call the uploader in the loop for every resource.

    Regards,

    Aditi

    0
    Comment actions Permalink
  • Avatar
    robertbentley
    <script id="template-download" type="text/x-tmpl">
    {% for (var i=0, file; file=o.files[i]; i++) {; %}
    <tr class="template-download">
        <td width="100px" align="center">
            <span class="preview">
                {% if (file.path) { %}
                    <img src="/myproject/{%=file.path%}" width="100px">
                {% } %}
            </span>
        </td>
        <td width="400px" align="center">
            <p class="name">
                {%=file.name%}
            </p>
            {% if (file.error) { %}
                <div><span class="label label-important">Error</span> {%=file.error%}</div>
            {% } %}
        </td>
        <td width="100px" align="center">
            <span class="size">{%=o.formatFileSize(file.size)%}</span>
        </td>
    </tr>
    {% } %}
    </script>
    0
    Comment actions Permalink
  • Avatar
    Ryan Lim

    Hey Alejandro Esteban, From where you got this code? I want something like this but don't know from where to get this. Please help me if possible for you. Thanks

    0
    Comment actions Permalink
  • Avatar
    Akshay Joshi

    Hi Ryan,

    In order to better understand the issue, I need some more information.
    Can I please ask you to provide more details about the problem you're encountering?

    You can also check out our documentation where we have code samples

    https://cloudinary.com/documentation/node_integration

    Looking forward to your response.

    Best,
    Akshay

    0
    Comment actions Permalink

Please sign in to leave a comment.