plegall
8effbe8e95
fixes #1356 pwg.images.uploadAsync, move auth code to inc/user.inc.php
...
In order to avoid loading user context as "guest" and then wait to be in ws_images_uploadAsync function to authenticate and load a new user context. This way we deal with "automatic" authentication in the same place (as apache auth or url auth) and we use the more common user context loading mecanism. Making Community compatible is now much easier.
To avoid duplicating too many lines of ws.php into inc/user.inc.php, I have moved the init of ws.php into inc/ws_init.inc.php
2021-10-07 14:53:27 +02:00
plegall
fb84527e3b
issue #164 add new API method pwg.images.uploadCompleted
...
+ trigger ws_images_uploadCompleted when this API method is called
+ trigger empty_lounge (can be called at another moment with different effect)
2021-09-15 13:50:15 +02:00
plegall
1ec5a2933c
fixes #1343 remove auto-escape of reserved keywords on MySQL 8
...
ie no more adding backticks around "rank" and "groups". Too many collateral damages.
2021-08-03 19:27:31 +02:00
plegall
ac0d1a5b47
fixes #1419 add photos in a lounge as a temporary space
...
* at the end of the upload of after a maximum duration, move the photos from the lounge to their actual categories.
* do not invalidate user cache when photos are added in the lounge, thus avoiding to rebuild cache on every photo uploaded
* the lounge system activates itself only beyond 50k (by default) photo
2021-06-11 16:42:48 +02:00
plegall
af7e4028b0
fixes #1203 add API method pwg.images.uploadAsync
...
Available as a plugin for Piwigo 2.10, this method is now embedded in Piwigo 11. Designed to work with iOS app, can be used by any remote application.
2020-11-19 18:14:05 +01:00
plegall
1e23ed84d3
fixes #1168 prevent XSS on pwg.images.setInfo
2020-03-24 14:07:49 +01:00
plegall
fa8996e10f
issue #1073 prevents from making uploaded file executable
...
* for the name of the file in buffer directory, do not use the name given by the user, but the md5 of the name without extension
* function add_uploaded_file deletes uploaded file if not expected
2019-09-20 16:26:21 +02:00
plegall
fc193f7474
issue #830 simplify PHP files header, remove copyright/license info
2019-06-04 17:13:51 +02:00
Yann Le Boudec
9891c79f25
issue #1019 photo upload redesign
...
Based on Samuel's mockup.
2019-05-22 16:49:35 +02:00
plegall
940d1d2e8c
issue #552
...
* many more admin actions are logged into activity table
* use the activity.details as an associative array (serialized in database)
2019-04-01 16:19:09 +02:00
Teatek
b8d6f01b38
fixes #966 progression bar for sync metadata
...
* [Batch Manager] adding progression bar for metadata sync action
* [Batch Manager] display the number of synchronized photos in the success message
2019-01-27 17:16:13 +01:00
Teatek
b05241f508
Fixes #272 missing md5sum
...
* dashboard: add warning if missing checksums
* add a "compute all missing md5sum" option in batch manager (inspired by delete orphans)
* progress bar when computing md5sums
2019-01-22 10:26:52 +01:00
plegall
23fa4c1a73
fixes #871 , CVE-2018-7722 strip tags on methods pwg.categories.add, pwg.categories.setInfo, pwg.images.setInfo
...
Adding pwg_token would be a better solution but would break remote applications (like the iOS app)
2018-07-06 18:29:41 +02:00
Cosmin Stroe
ee4aae7e74
Fixes #767 - Return a 500 HTTP status when a file upload error occurs. ( #768 )
...
* Return a 500 HTTP status when a file upload error occurs.
2017-10-05 15:35:24 +02:00
plegall
6126a09604
fixes #725 , protect pwg.images.setInfo from HTML
2017-07-03 13:56:10 +02:00
plegall
309b2f4476
feature #606 , check pwg_token and display error (if any)
2017-01-24 17:29:28 +01:00
plegall
3466c432e1
feature #606 , backend API method pwg.images.deleteOrphans
...
This method will delete a block of orphans and return the number of remaining orphans.
2017-01-24 15:09:52 +01:00
modus75
37fc55e6b6
issue 593 - batch manager block deletion; simpler php code + exact progress feed back ...
2017-01-10 21:24:25 +01:00
plegall
743bbb61f4
feature #593 , simplify detailed output for pwg.images.delete
2017-01-09 14:33:26 +01:00
plegall
e6e7465b9d
fixes #593 , delete by blocks of 100 photos, with a progress bar
2016-12-26 23:24:29 +01:00
plegall
bc7316639f
fixes #349 , API set ranks of all album photos at once
...
on pwg.images.setRank, ability to provide a list of image_id (and no rank).
This way you can set the order of all photos of a given album, at once.
2016-01-28 16:03:39 +01:00
plegall
c789347c51
happy new year 2016, all headers updated
2016-01-14 12:17:58 +01:00
mistic100
0c576ea19d
feature 3221 Add Logger class
...
git-svn-id: http://piwigo.org/svn/trunk@31102 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-04-24 14:00:50 +00:00
rvelices
4e60430dc6
use query2array
...
git-svn-id: http://piwigo.org/svn/trunk@31031 68402e56-0260-453c-a942-63ccdbb3a9ee
2015-03-12 19:51:21 +00:00
plegall
1cc9155c74
bug 3171 fixed: no need to double escape the file name from HTML5 upload
...
git-svn-id: http://piwigo.org/svn/trunk@30375 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-11-06 09:16:30 +00:00
plegall
379398d917
feature 3067: upload any file type with the new HTML5 upload form.
...
$file_types = conf['upload_form_all_types'] ? $conf['file_ext'] : $conf['picture_ext'];
By default, conf['upload_form_all_types'] = false;
git-svn-id: http://piwigo.org/svn/trunk@29124 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-07-30 13:48:35 +00:00
plegall
7b3783c981
feature 2616: better behavior at the end of upload (more like with uploadify, but no page reload)
...
git-svn-id: http://piwigo.org/svn/trunk@28554 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-28 16:41:56 +00:00
plegall
682148e917
feature 2616, customizations for plupload
...
* bug fixed, remove debug inserts in table "plupload"
* display photo title as tooltip on thumbnail
* hide useless .plupload_header
* hide any other form fieldset until an album is selected
git-svn-id: http://piwigo.org/svn/trunk@28552 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-28 09:33:17 +00:00
plegall
70bcfb5b86
feature 2616: HTML5 upload (with plupload 2.1.2). First basic implementation. Needs customization.
...
Chunked upload + Drag & drop (no more Flash)
use a new specific API method pwg.images.upload
git-svn-id: http://piwigo.org/svn/trunk@28545 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-05-27 14:11:23 +00:00
rvelices
1f3f5ff73f
bug 3069: add quick search as filter in batch manager
...
git-svn-id: http://piwigo.org/svn/trunk@28087 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-04-05 19:24:27 +00:00
mistic100
636650309a
Update headers to 2014. Happy new year!!
...
git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
2014-01-05 00:19:25 +00:00
mistic100
2eae3907a7
splits ws_functions.inc.php in 8 files + comments + code cleaning
...
git-svn-id: http://piwigo.org/svn/trunk@25281 68402e56-0260-453c-a942-63ccdbb3a9ee
2013-11-01 11:03:10 +00:00