diff options
author | Florian Pritz <bluewind@xinu.at> | 2013-01-17 18:54:35 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2013-01-17 21:25:44 +0100 |
commit | e1e658c6547a2b00a2b5b32bf3cd34ab8a5f2a52 (patch) | |
tree | f26e9ef785ff1d2f8d23b7235fb991e93d5e6d1c /application/views/file/upload_form.php | |
parent | dc3afcb35744ec5d9036fc329dab25f0c8dcd7a5 (diff) |
Support multiple uploads in the same request
This change *should* be backwards compatible.
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file/upload_form.php')
-rw-r--r-- | application/views/file/upload_form.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/application/views/file/upload_form.php b/application/views/file/upload_form.php index a6f4eedc7..aaf36931a 100644 --- a/application/views/file/upload_form.php +++ b/application/views/file/upload_form.php @@ -13,7 +13,7 @@ <div class="span6"> <?php echo form_open_multipart('file/do_upload'); ?> <h2>File upload</h2> - <input id="file" type="file" name="file"><br> + <input class="file-upload" type="file" name="file[]" multiple="multiple"><br> <button type="submit" id="upload_button" class="btn btn-primary">Upload it!</button> </form> <div class="alert alert-block alert-info"> @@ -22,7 +22,8 @@ Uploads/pastes are deleted after <?php echo $upload_max_age; ?> days <?php if($small_upload_size > 0) { echo "unless they are smaller than ".format_bytes($small_upload_size); - } ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?> + } ?>. Maximum upload size is <?php echo format_bytes($max_upload_size); ?>. + You can upload a maximum of <?php echo ini_get("max_file_uploads"); ?> files at once. </p> </div> </div> |