Multiple file uploads
  • Hey,

    Is there any plans to allow multiple files to be uploaded at once?

    Uploading dozens of images for a template is rather tedious.

    Scott
  • Hi Scott,

    I assume you're talking about the theme files (/admin/theme_assets). Yes, there is a way to upload multiple files at once.
    Create a css file, edit it and click on the 'Insert an image into the code' link at the bottom of the textarea, then select as many files as you want. I build it like this at first because almost of my images was used inside a css file (makes sense).

    BUT, now, it's very rare when I upload a file in the theme files section. What's the reason ? Well, I've got the super famous locomotive editor. It's a sinatra app running without mongodb and allowing me to build site locally super fast. I worked with it to do the themes you can see here (http://www.locomotivecms.com/support/themes).
    I still don't know if I will open source it.

  • yes I was talking about /admin/theme_assets

    If I click on 'Insert an image into the code' I get a modal window showing files that I have already uploaded.

    What I was looking for was a way to select multiple files to upload at a single time. Generally this is done by holding command (or ctl) while choosing files. In the past I have used http://www.swfupload.org/ to handle this sort of thing.

    If I get a spare couple of hours this week I might try and put together a patch to implement this.

    Scott
  • I spent a couple of hours looking into using SWFupload on the theme_assets upload page and it looks like it should work but will require some tweaking of the page.

    Essentially what would need to happen is the whole /admin/theme_assets/new page would have to become an AJAX form so that you could queue up several files before submitting the form. You can view a demo form here that shows the behaviour.

    http://demo.swfupload.org/v220/featuresdemo/index.php

    Just wondering if this is something you might be interested in me implementing or would I just be wasting my time?

    Scott
  • Hi Scott,

    damn I'm sorry, but it looks I'm using plupload for the multi files upload, I should have told you that before (so so sorry). Check the "new file" button (it should be "new files" instead) in the popup we were talking about. On my mac (safari & firefox), I can upload many files at the same time.

    I think it'd a great adding if we could also have this link directly in the /admin/theme_assets page. The most time consuming part in this task is the js behaviour once the files have been uploaded. Be sure, I will help you of course if you decide to tackle this task !

    Thanks !
  • Hi,

    I know this is an old post, but I tried to 'Add File' in the modal that appears when you click on the 'Insert an image into the code' link (following the instructions above), but it no longer seems to work.

    I do get a browser 'File Upload' window in which I can select multiple items... but nothing happens when you upload. I tried using Firefox and Safari but neither worked.

    So from what I can gather, importing a theme is currently just a one file upload at a time process (via the "+ New File" button on the '/admin/theme_assets" page???

    -- Cam

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!