Multiple Image Upload


#1

not sure if this is available or I just missed it ? is there a way for multiple image upload? coz when I select images it doesnt select multiple items


#2

drag and drop feature works multiple uploading but on the image upload button it only accepts 1 image at a time


(Jeff Atwood) #3

Is multiple select even allowed in the browser upload support? Do we know @zogstrip?


(Mittineague) #4

Doesn’t seem to be in Firefox anyway.

In Windows explorer I can ctrl-select or shift-select multiple folders / files

In the Discourse upload modal, not so


#5

yes I mean on the Windows explorer it doesnt let me select multiple images, coz I usually do this on my wordpress platform, and yes in the discourse modal it not available


(Régis Hanol) #6

I view it as power-user feature only supported for drag & drop.


(John Muhl) #7

I just tried on http://try.discourse.org by adding the multiple attribute to the file input element and uploads worked. img elements for both were even automatically inserted.


#8

nice so it means it just a matter of few tweaks in the code :smile:


(Jeff Atwood) #9

If this is the case @zogstrip I don’t see much harm in including it…


(Mittineague) #10

Within sane total weight limits please. I like posting more than 1 image in a post at times, but making it easy to upload infinite could be a problem.

Not so bad if they’re a bunch of smilies, more so if they’re mega weight images


(John Muhl) #11

At least on http://try.discourse.org there is already a warning when your files are too big:

Sorry, the file you are trying to upload is too big (maximum size is 3072kb)

Not sure what happens if you try to upload a ton of tiny images though.


(Mittineague) #12

I just found this grepping for “Sorry”

too_many_dragged_and_dropped_files: "Sorry, you can only drag & drop up to 10 files at a time."


(Régis Hanol) #13

Yeah technically you can drag & drop as many files as you want but I’ve hard-coded the limit to 10.


(Mittineague) #14

Considering I just recently saw a topic here where a member posted 28 (relatively large) screen captures in the OP, 10 at a time seems more than fair.


(Régis Hanol) #15

Ok, it’s now official :turtle:

https://github.com/discourse/discourse/commit/7bc0cbc67240a314653c2cffb5ee60bbd5311539


Multiple image upload on mobile
(Régis Hanol) #16