summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #13502 from owncloud/streamline-authentication-in-newfileMorris Jobke2015-02-071-6/+3
|\ \ | | | | | | Streamline CSRF and login check
| * | Streamline CSRF and login checkLukas Reschke2015-01-201-6/+3
| |/ | | | | | | Let's make this consistent with other pieces of the code to make it easier to auditable.
* / Catch exception properlyLukas Reschke2015-02-041-1/+6
|/ | | | | | `\OCA\Files\Helper::buildFileStorageStatistics` might throw an exception from `OC_Helper::getStorageInfo`, previously this lead to a uncatched exception being thrown when invoking this methods. This was user triggable by for example calling `/index.php/apps/files/ajax/delete.php` with a not existing dir (for example `dir=asdf/../&allfiles=true`)
* Remove stripslashes() from newfolder.phpLukas Reschke2015-01-191-2/+1
|
* Check for existence of $_GET keysLukas Reschke2015-01-141-2/+2
| | | | `$dir` may for example very well not get passed at well.
* Get rid of `stripslashes()`Lukas Reschke2015-01-135-9/+8
| | | | This conversions are actually totally unneeded and probably left-overs from ages where the safe_mode was still a valid thing.
* Merge pull request #13279 from owncloud/upload-original-nameMorris Jobke2015-01-121-2/+2
|\ | | | | Send the proper original name for uploaded files
| * Send the proper original name for uploaded filesRobin Appelman2015-01-121-2/+2
| |
* | Check for existence of $_GET keysLukas Reschke2015-01-091-5/+5
|/ | | | Otherwise PHP errors are thrown in the error log.
* Verify existence of $_GET keyLukas Reschke2015-01-091-1/+3
| | | | | | | | Otherwise when the file without any specified mimetype was accessed the error log was flooded with entries such as "Undefined index: mime", there can be multiple issues found about this in the forum and our bugtracker. To test this access `/index.php/apps/files/ajax/mimeicon.php` with and without `$_GET['mime']`. Fixes itself.
* Add error handling to getstoragestats.phpRobin Appelman2015-01-061-1/+5
|
* Only populate tags in main file listVincent Petry2014-12-181-0/+1
| | | | | | Moved populateTags to be done on the main file list. This prevents the public file list to go through the same code and cause an error when there is no user.
* Merge pull request #12698 from owncloud/handle_readonly_shared_filesMorris Jobke2014-12-121-6/+18
|\ | | | | Handle readonly shared files
| * show readonly message in file conflict dialog, make it always selectedJörn Friedrich Dreyer2014-12-111-6/+18
| |
* | Skip headers that can not be splitVictor Dubiniuk2014-12-081-0/+3
|/
* Check if files are deletable before trying to delete themRobin Appelman2014-11-261-1/+3
|
* Merge pull request #12421 from ↵Morris Jobke2014-11-261-3/+3
|\ | | | | | | | | owncloud/issue/6101-remove-namespace-permission-constants Issue/6101 remove namespace permission constants
| * Replace deprecated constant with new class constantJoas Schilling2014-11-251-3/+3
| |
* | we no longer need to keep the session open for encryptionBjoern Schiessle2014-11-251-6/+2
|/
* Prevent division by zeroLukas Reschke2014-10-241-1/+1
| | | | Potentially fixes https://github.com/owncloud/core/issues/11742
* log exceptions when listing filesJörn Friedrich Dreyer2014-10-081-0/+3
|
* Do only follow HTTP and HTTPS redirectsLukas Reschke2014-09-221-2/+7
| | | | | | | | We do not want to follow redirects to other protocols since they might allow an adversary to bypass network restrictions. (i.e. a redirect to ftp:// might be used to access files of a FTP server which might be in a secure zone and not be reachable from the net but from the ownCloud server) Get final redirect manually using get_headers() Migrate to HTTPHelper class and add unit tests
* Merge pull request #10922 from owncloud/explicit-scan-transactionsLukas Reschke2014-09-091-1/+1
|\ | | | | Use bigger transactions when doing explicit file system scans
| * Use bigger transactions when doing explicit file system scansRobin Appelman2014-09-081-1/+1
| |
* | Merge pull request #10739 from owncloud/eventsource-publicLukas Reschke2014-09-082-4/+4
|\ \ | | | | | | Add EventSource to the public API
| * | Better phpdoc and method namingRobin Appelman2014-09-042-2/+2
| | |
| * | Use the public api to get event sourcesRobin Appelman2014-09-032-4/+4
| |/
* / Catch exceptions when moving filesVincent Petry2014-09-051-4/+10
|/ | | | | | | | When moving files on storages that don't expose permissions, the storage itself might throw an exception when the permission is denied. This fix ensures that exceptions are caught and forwarded to the client instead of just hanging.
* Use public api for getting l10nRobin Appelman2014-08-316-6/+6
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-2911-11/+11
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* set incognitoMode to true, getUser should always return false during public ↵Bjoern Schiessle2014-08-181-1/+3
| | | | upload
* Merge pull request #10295 from owncloud/file_actions_error_handlingBjörn Schießle2014-08-141-1/+2
|\ | | | | file actions improved error handling
| * no error if we try to delete a file which no longer existsBjoern Schiessle2014-08-111-1/+2
| |
| * no special action for folder named 'Shared' neededBjoern Schiessle2014-08-111-1/+1
| |
* | check quota when trying to download a file via new -> webJörn Friedrich Dreyer2014-08-081-0/+23
|/
* More error catching in list.phpRobin Appelman2014-07-011-7/+22
|
* Handle StorageNotAvailableException in ajax/list.phpRobin Appelman2014-06-301-27/+37
|
* Merge if statementsJoas Schilling2014-06-231-6/+2
|
* Remove warning when deleting all entriesVincent Petry2014-06-231-1/+2
| | | | | When deleting all entries, only "allfiles" is defined but not "file" or "files", which caused a PHP warning to be logged.
* Fixed uploading by drag and drop into folderVincent Petry2014-06-191-19/+21
|
* php upload errors are written to logThomas Müller2014-05-221-1/+3
|
* Add sorting to files list, trashbin and public filesVincent Petry2014-04-281-1/+4
|
* remove unused exit()Thomas Müller2014-04-071-1/+0
|
* Merge branch 'master' of https://github.com/lukepolo/core-1 into lukepolo-masterThomas Müller2014-04-071-8/+18
|\ | | | | | | | | Conflicts: apps/files/js/file-upload.js
| * Feature Added : Ability to drag and drop in ChromeLuke Policinski2014-02-191-2/+2
| |
| * Feature Added : Ability to drag and drop in ChromeLuke Policinski2014-02-191-8/+18
| |
* | Fixed dirInfo check for non existing dir in files ajax callVincent Petry2014-04-031-1/+1
| |
* | Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-025-113/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Files app: - removed file list template, now rendering list from JSON response - FileList.addFile/addDir is now FileList.add() and takes a JS map with all required arguments instead of having a long number of function arguments - added unit tests for many FileList operations - fixed newfile.php, newfolder.php and rename.php to return the file's full JSON on success - removed obsolete/unused undo code - removed download_url / loading options, now using Files.getDownloadUrl() for that - server side now uses Helper::getFileInfo() to prepare file JSON response - previews are now client-side only Breadcrumbs are now JS only: - Added BreadCrumb class to handle breadcrumb rendering and events - Added unit test for BreadCrumb class - Moved all relevant JS functions to the BreadCrumb class Public page now uses ajax to load the file list: - Added Helper class in sharing app to make it easier to authenticate and retrieve the file's real path - Added ajax/list.php to retrieve the file list - Fixed FileActions and FileList to work with the ajax list Core: - Fixed file picker dialog to use the same list format as files app
* | Merge pull request #7107 from owncloud/load-apps-proper-masterThomas Müller2014-03-284-18/+0
|\ \ | | | | | | Load apps proper master
| * \ Merge branch 'master' into load-apps-proper-masterThomas Müller2014-03-2113-97/+85
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files/ajax/rawlist.php cron.php ocs/v1.php