Commit 898e2b66 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #21429: Maximum upload file size was checked in bytes, not megabytes.

parent 89ae34de
......@@ -164,7 +164,7 @@ function upload_nodeapi(&$node, $op, $arg) {
$file = _upload_image($file);
$maxsize = variable_get("upload_maxsize_total", 0);
$maxsize = variable_get("upload_maxsize_total", 0) * 1024 * 1024;
$total_size = upload_count_size() + $filesize;
$total_usersize = upload_count_size($user->uid) + $filesize;
......
......@@ -164,7 +164,7 @@ function upload_nodeapi(&$node, $op, $arg) {
$file = _upload_image($file);
$maxsize = variable_get("upload_maxsize_total", 0);
$maxsize = variable_get("upload_maxsize_total", 0) * 1024 * 1024;
$total_size = upload_count_size() + $filesize;
$total_usersize = upload_count_size($user->uid) + $filesize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment