summaryrefslogtreecommitdiffstats
path: root/application/controllers/file
AgeCommit message (Collapse)AuthorFilesLines
2017-09-18Migrate return code checks for CI3Florian Pritz1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-09-09WIP: CI3 migrationFlorian Pritz2-989/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-07-11Actually update filesize with update_file_metadatahashworks1-1/+4
According to `application/controllers/tools.php#L32` the `update_file_metadata` tool should update the mimetype AND the filesize, but the latter never got implemented.
2017-05-12Catch incorrect POST parameters (array vs string)Florian Pritz2-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-26s/renderer: Pass output_cache in constructorFlorian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-26Extract render code into dedicated classFlorian Pritz1-144/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-24Improve error handling in json reformaterFlorian Pritz1-4/+17
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-22Reformat single-line JSON when renderingFlorian Pritz1-0/+5
Be conservative and only apply the reformating for single line pastes. This should cover the most common cases and protect against trying to reformat non-json content. Fixes #14 Signed-off-by: Florian Pritz <bluewind@xinu.at>
2017-03-22Pass file content to lexer via stdinFlorian Pritz1-2/+5
This allows to easily modify the content before rendering it. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Remove cli client upload handlerFlorian Pritz1-52/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05c/file: Remove upload detectionFlorian Pritz1-3/+1
This only existed for curl based uploading which is no longer supported Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05c/file_default: Drop $this->view_dirFlorian Pritz1-14/+12
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Remove plaintext API deprecation warningFlorian Pritz1-9/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Remove cli client only functionsFlorian Pritz1-32/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Remove special handling of cli clientsFlorian Pritz1-21/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-05Drop file_plaintext viewsFlorian Pritz1-5/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01Fix missing / in redirect after creating multipaste via webuiFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01Allow creation of multipastes from upload historyFlorian Pritz1-0/+34
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-11-01Add multipaste queueFlorian Pritz1-0/+113
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-10-31Remove call to undefined function File_default->client()Florian Pritz1-3/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-09-19Improve plaintext API deprecation warningFlorian Pritz1-1/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-09-19Extract tooltip function into \service\filesFlorian Pritz1-28/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2016-09-19Move file controller into subdirFlorian Pritz1-0/+1221
This allows to more easily split the controller into smaller parts in the future. Signed-off-by: Florian Pritz <bluewind@xinu.at>