File Deletion using nonce, file renaming
If uploadDeleteLink setting is false then file deletion is only possible for logged in user. If it's true then any user is allowed to remove if they provide correct nonce.
Also only if that setting is true the deleteUrl json key is added to returned url on upload that informs unloader what deletionUrl is.
Also added success page to offset error page. Provided some basic custom name functions for end user to use.
Did some basic GUI work so there are buttons for both rename and delete everywhere. Can't get it to look correctly in list/links pages - little offset.
For security reasons no path input is allowed from user - all files that are to be changed are selected using their nonce.
Video File Handling to Gallery
Cause why not have it load fist frame from video files? It makes sense in current world where people start sharing mp4 and webm. Preloading is set to metadata only so it should not waste anyone data plan while still getting first frame of video as thumbnail.
Examples for custom-name functions
Dunno - was bored - seemed like good idea at time.
Saner statCache invalidation.
So that every time something new is added that need's to cache the data it don't need it's own handling code.
Warning - This change will cause old statCache files to be re-created. Every time statCache format is changed version number should be changed too to ensure old formatted statCache is not used by new code.
Additional Uploading handling
Fixed small bug with Upload that allowed uploading empty files. Also made it so that if file is dragged over Upload link on any of the pages then page will switch to uploading one.
File Deletion using nonce, file renaming If
uploadDeleteLink
setting is false then file deletion is only possible for logged in user. If it's true then any user is allowed to remove if they provide correct nonce. Also only if that setting is true thedeleteUrl
json key is added to returned url on upload that informs unloader what deletionUrl is. Also added success page to offset error page. Provided some basic custom name functions for end user to use. Did some basic GUI work so there are buttons for both rename and delete everywhere. Can't get it to look correctly in list/links pages - little offset. For security reasons no path input is allowed from user - all files that are to be changed are selected using their nonce.Video File Handling to Gallery Cause why not have it load fist frame from video files? It makes sense in current world where people start sharing mp4 and webm. Preloading is set to metadata only so it should not waste anyone data plan while still getting first frame of video as thumbnail.
Examples for custom-name functions Dunno - was bored - seemed like good idea at time.
Saner statCache invalidation. So that every time something new is added that need's to cache the data it don't need it's own handling code. Warning - This change will cause old statCache files to be re-created. Every time statCache format is changed version number should be changed too to ensure old formatted statCache is not used by new code.
Additional Uploading handling Fixed small bug with Upload that allowed uploading empty files. Also made it so that if file is dragged over
Upload
link on any of the pages then page will switch to uploading one.