summaryrefslogtreecommitdiffstats
path: root/application/service/files.php
AgeCommit message (Collapse)AuthorFilesLines
2015-05-21Support multiple files with the same hashFlorian Pritz1-33/+52
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-04-18s/files:get_multipaste_history: Remove multipastes without itemsFlorian Pritz1-0/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08api/file/create_multipase: return URLFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-08Unify file/cron and mfile->valid_idFlorian Pritz1-0/+50
Create a testable function doing all the verification/removal, add tests and use it for both cases. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-22s\files: rename add_file to add_uploaded_fileFlorian Pritz1-1/+1
It doesn't add any file so it should have that name. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-21s/files: add add_file_data for future code deduplicationFlorian Pritz1-2/+31
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-15s/file/add_file: make file move atomicFlorian Pritz1-3/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Fix consistency of error_idsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-14Use assoc array for service/files/verify_uploaded_filesFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-06service/files::delete: Fix incorrect error when wrong ownerFlorian Pritz1-3/+4
Also improve the variable name for easier understanding. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05service/files::history: Fix total_size if no resultsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-05fixup! Support database table prefixesFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/create_multipasteFlorian Pritz1-0/+53
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03api: implement file/deleteFlorian Pritz1-0/+62
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-02-03Rework error handling in upload validatorFlorian Pritz1-3/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16add some TODOsFlorian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16fix multipaste in service/historyFlorian Pritz1-1/+5
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16refactor service/file/historyFlorian Pritz1-24/+28
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16Improve history api for multipastesFlorian Pritz1-11/+21
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-16first go at reworking; needs to be redesignedFlorian Pritz1-0/+116
Signed-off-by: Florian Pritz <bluewind@xinu.at>