Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
limit individual file size to 200MB
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmason committed Apr 29, 2014
1 parent 3abb78b commit 60986fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Expand Up @@ -125,6 +125,8 @@
// TODO proper i18n for these strings
if (error === 'File type not allowed') {
data.files[index].error = '"' + file.name + '" is not a supported file type.'
} else if (error === 'File is too large') {
data.files[index].error = '"' + file.name + '" is too large.'
}
that._renderError(file).appendTo(options.errorList);
} else {
Expand Down
Expand Up @@ -87,6 +87,7 @@ $(function () {

uploadForm.fileupload({
sequentialUploads: true,
maxFileSize: 200*1024*1024,
dropZone: dropZone,
beforeAdd: (function beforeAdd (e, data) {
errorList.empty();
Expand Down
Expand Up @@ -70,7 +70,7 @@ site: http://www.fsf.org.
<input type="file" name="files[]" multiple="multiple" style="position:absolute;top:0;left:0;direction:ltr;opacity:0;font-size:200px;" />
</a>
</p>
<small class="txt--meta">Maximum file size is 5mb</small><br />
<small class="txt--meta">Maximum file size is 200MB</small><br />
<small class="txt--meta">Accepted: pot, dtd, txt, idml, htm, html, odt, odp, ods, odg</small>
</div>

Expand Down

0 comments on commit 60986fe

Please sign in to comment.