https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c9af5
)
let js_upload addon be aware of upload image size limit, and return message to user...
author
Fabio Comuni
<fabrix.xm@gmail.com>
Wed, 6 Jul 2011 15:26:04 +0000
(17:26 +0200)
committer
Fabio Comuni
<fabrix.xm@gmail.com>
Wed, 6 Jul 2011 15:26:04 +0000
(17:26 +0200)
addon/js_upload/js_upload.php
patch
|
blob
|
history
diff --git
a/addon/js_upload/js_upload.php
b/addon/js_upload/js_upload.php
index
042e9a9
..
8691389
100644
(file)
--- a/
addon/js_upload/js_upload.php
+++ b/
addon/js_upload/js_upload.php
@@
-129,7
+129,7
@@
function js_upload_post_init(&$a,&$b) {
// max file size in bytes
- $sizeLimit = 6 * 1024 * 1024;
+ $sizeLimit =
get_config('system','maximagesize'); //
6 * 1024 * 1024;
$uploader = new qqFileUploader($allowedExtensions, $sizeLimit);
@@
-141,6
+141,7
@@
function js_upload_post_init(&$a,&$b) {
if(isset($result['error'])) {
logger('mod/photos.php: photos_post(): error uploading photo: ' . $result['error'] , 'LOGGER_DEBUG');
+ echo json_encode($result);
killme();
}