aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/newfile.php
Commit message (Collapse)AuthorAgeFilesLines
* Make files app use Webdav for most operationsVincent Petry2015-11-221-103/+0
|
* update license headers and authorsMorris Jobke2015-06-251-1/+0
|
* Catch exceptions in files ajax callsVincent Petry2015-06-031-4/+15
|
* Update license headersJenkins for ownCloud2015-03-261-1/+26
|
* adding storage specific filename verification - refs #13640Thomas Müller2015-03-091-18/+9
|
* remove $content parameterThomas Müller2015-03-021-7/+4
|
* Remove "Download from URL" featureLukas Reschke2015-03-021-107/+14
| | | | Fixes https://github.com/owncloud/core/issues/13326
* Revert "Updating license headers"Morris Jobke2015-02-261-27/+1
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-1/+27
|
* Manually type-case all AJAX filesLukas Reschke2015-02-131-4/+4
| | | | | | This enforces proper types on POST and GET arguments where I considered it sensible. I didn't update some as I don't know what kind of values they would support :see_no_evil: Fixes https://github.com/owncloud/core/issues/14196 for core
* 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.
* Get rid of `stripslashes()`Lukas Reschke2015-01-131-1/+0
| | | | This conversions are actually totally unneeded and probably left-overs from ages where the safe_mode was still a valid thing.
* Skip headers that can not be splitVictor Dubiniuk2014-12-081-0/+3
|
* Prevent division by zeroLukas Reschke2014-10-241-1/+1
| | | | Potentially fixes https://github.com/owncloud/core/issues/11742
* 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
* Better phpdoc and method namingRobin Appelman2014-09-041-1/+1
|
* Use the public api to get event sourcesRobin Appelman2014-09-031-1/+1
|
* Use public api for getting l10nRobin Appelman2014-08-311-1/+1
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-1/+1
| | | | | | | | | | | | 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
* check quota when trying to download a file via new -> webJörn Friedrich Dreyer2014-08-081-0/+23
|
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* close the session on all file operationsThomas Müller2014-03-101-1/+2
|
* Added extra checks for invalid file chars in newfile.php and newfolder.phpVincent Petry2014-02-181-4/+10
| | | | | | | - added PHP utility function to check for file name validity - fixes issue where a user can create a file called ".." from the files UI - added extra checks to make sure newfile.php and newfolder.php also check for invalid characters
* Added error message for when target folder was removedVincent Petry2014-01-291-0/+9
| | | | | | | | | | Whent trying to upload/rename/create files in a folder that was removed or rename, the correct error message is now shown. In the case of upload of multiple files, the upload is cancelled. This situation can happen if the target folder was renamed or removed from another browser window or client.
* Fixed download file from URL error messagesVincent Petry2013-12-121-8/+20
| | | | | | | | - L10N now converted to string to make them work with json_encode - Added specific error message when server doesn't allow fopen on URLs - Fixed client side to correctly show error message in a notification - Added OCP\JSON::encode() method to encode JSON with support for the OC_L10N_String values
* Added missing comma to make the next diff cleanerVincent Petry2013-10-311-1/+1
|
* Append file etag to preview URLsVincent Petry2013-10-281-1/+2
| | | | Fixes #5534
* Fix double not in newfile/newfolder language.Andreas Fischer2013-10-271-1/+1
|
* fix translationsJörn Friedrich Dreyer2013-10-231-7/+7
|
* cleanup array value assignmentJörn Friedrich Dreyer2013-10-231-8/+4
|
* cleanup precondition checking when creating new files / foldersJörn Friedrich Dreyer2013-10-231-11/+20
| | | | | | - use i18n - use trim when checking for empty file / folder name - use more verbose error descriptions
* use correct filename in error result jsonJörn Friedrich Dreyer2013-10-231-1/+1
|
* fixing undefined variable $newnameThomas Müller2013-10-221-1/+1
|
* prevent user from creating or renaming sth. to an existing filenameJörn Friedrich Dreyer2013-10-221-0/+15
| | | | | | | | - show tooltip when violating naming constraints while typing - when target filename exists on server fallback to dialog to interrupt the users flow because something unexpected went wrong - fixes #5062 - also fixes some whitespace and codestyle issues in files js - uses css selector over filterAttr in touched js files
* use gerMimeTypeDetector detectPath instead of getMimeTypeGeorg Ehrke2013-08-301-1/+1
|
* communicate size of newly created file back and update UIThomas Müller2013-08-161-0/+2
|
* Merge branch 'master' into mimetype-defaultsThomas Müller2013-08-161-41/+48
|\ | | | | | | | | Conflicts: apps/files/ajax/newfile.php
| * Use multiple lines for the JSON data array.Andreas Fischer2013-08-081-1/+5
| |
| * Adjust JSON code to stable5.Andreas Fischer2013-08-081-1/+2
| |
| * Do not repeat JSON success code.Andreas Fischer2013-08-081-8/+7
| |
| * Do not repeat definition of $target.Andreas Fischer2013-08-081-5/+6
| |
* | add the option to have templates for newly created filesRobin Appelman2013-08-071-34/+38
|/
* Files: set the proper mimetype when creating a new text fileRobin Appelman2013-05-061-1/+1
|
* move some stuff to the new apiRobin Appelman2012-10-261-6/+6
|
* merge master into filesystemRobin Appelman2012-10-251-1/+1
|\
| * dir in newfile has to start with /Bart Visscher2012-10-251-1/+1
| |
* | cleanup OC_Files a bitRobin Appelman2012-10-241-1/+1
| |
* | don't use depricated OC_FilesystemRobin Appelman2012-10-101-3/+3
|/
* stripsplashes doesn't work if the slash is the only character -> creating ↵Björn Schießle2012-10-051-4/+3
| | | | file in root dir leads to "//filename"
* fix sharing for newly uploaded or created filesRobin Appelman2012-09-261-4/+10
|