aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
Commit message (Collapse)AuthorAgeFilesLines
* Files, trashbin, public apps use ajax/JSON for the file listVincent Petry2014-04-021-55/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* remove executable flag for file-upload.jsMorris Jobke2014-03-201-0/+0
|
* Comment moved to prevent 'Line is too long' warning.Oskar Hollmann2014-03-191-1/+2
|
* Fix: 'Upload button tooltip doesn't disappear'Oskar Hollmann2014-03-191-0/+1
| | | | Fixes issue #7461. Tipsy tooltip must be hidden when the upload starts. Otherwise it covers the progress bar and stays in DOM.
* only initialise upload dropZone if public upload is allowedIchEben2014-03-071-1/+1
|
* Fixed upload issue when free space is not knownVincent Petry2014-03-061-1/+3
|
* Added unit tests for "add()" method for file uploadVincent Petry2014-03-061-499/+504
| | | | | | - Added OC.Upload.init() to make the code testable - Added unit tests for the add() method of the uploader with some error cases
* don't allow to create a file or folder named 'Shared' in the root folder, ↵Bjoern Schiessle2014-03-051-17/+17
| | | | also exclude all combinations of lower and upper case letters
* Merge pull request #7011 from owncloud/jshintThomas Müller2014-02-041-0/+12
|\ | | | | Added .jshintrc
| * Added .jshintrcVincent Petry2014-01-301-0/+12
| | | | | | | | | | | | - Also fixes a few JSHint warnings in files app - Added "global" comment on top of files app to suppress warning and also inform devs about what globals are use
* | Merge branch 'master' into pr-exceed_upload_limit_msgPellaeon Lin2014-01-301-3/+23
|\| | | | | | | | | | | Conflicts: apps/files/templates/index.php apps/files_sharing/templates/public.php
| * Added error message for when target folder was removedVincent Petry2014-01-291-0/+7
| | | | | | | | | | | | | | | | | | | | 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 various file name escaping issues in core appsVincent Petry2014-01-101-2/+10
| | | | | | | | | | | | | | - Refactored file tr lookup into FileList.findFileEl that uses filterAttr to avoid escaping issues in jQuery selectors - Fixed versions and sharing app to properly escape file names in attributes
| * Fixed download file from URL error messagesVincent Petry2013-12-121-1/+6
| | | | | | | | | | | | | | | | - 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
* | Fix variable namePellaeon Lin2014-01-241-2/+2
| |
* | Use t() 's native methodPellaeon Lin2014-01-161-2/+8
| |
* | Contextual upload error messagePellaeon Lin2013-12-111-2/+2
| |
* | Display different messages for uploadLimit and freeSpacePellaeon Lin2013-12-081-2/+8
| |
* | Change misleading message when file size exceeds upload limitPellaeon Lin2013-12-081-2/+2
|/
* New file box now has default file name + extensionVincent Petry2013-11-281-3/+13
| | | | | | | | | | | Whenever a user creates a file or folder in the web UI, the input field will contain a default file name, pre-selected up to the extension for easier typing. The purpose is mostly to prevent users creating text files without an extension. Fixes #6045
* Increased upload error delay to 10 secondsVincent Petry2013-11-081-6/+5
| | | | | | | Fixes #5662 Also made it use OC.Notification instead of directly access the notification HTML element.
* Update quota value in client after scan and uploadVincent Petry2013-11-061-1/+1
| | | | | | After uploading, the quota value wasn't refreshed. This fix refreshes the quota value after files have been scanned or uploaded.
* Merge pull request #5582 from owncloud/files-previewcachingThomas Müller2013-11-051-4/+5
|\ | | | | Append file etag to preview URLs
| * Append file etag to preview URLsVincent Petry2013-10-281-4/+5
| | | | | | | | Fixes #5534
* | Prevent closing the create dropdown when right clicking in FirefoxVincent Petry2013-10-301-1/+5
| | | | | | | | | | | | | | Firefox sends a click event on the document when right clicking which makes pasting with right click into the field impossible. Fixes #5498
* | Added fix to correctly parse non-array error messagesVincent Petry2013-10-291-2/+7
|/ | | | Some apps like the antivirus app return messages in a non-array format.
* use a more descriptive error message when the user tries to create '/Shared'Jörn Friedrich Dreyer2013-10-231-2/+2
|
* fixing js syntax errorThomas Müller2013-10-221-2/+2
|
* prevent user from creating or renaming sth. to an existing filenameJörn Friedrich Dreyer2013-10-221-149/+188
| | | | | | | | - 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
* Fixed sharing status update for new/uploaded filesVincent Petry2013-10-171-1/+1
| | | | | | | | | | | | | | | Creating new files, folders or uploading files now have their sharing icon updated accordingly. For this, the global share status list that is cached in OC.Share.statuses is reused for new files. Performance should improve as the sharing list is now only loaded once per navigation session. In OC.Share, split loadIcons into loadIcons + updateIcons. Fixes #4977
* Merge pull request #5262 from owncloud/files-ie8-conflictdialogbrokenfixMorris Jobke2013-10-161-1/+5
|\ | | | | Fixed conflict dialog in IE8
| * Fixed conflict dialog in IE8Vincent Petry2013-10-101-1/+5
| | | | | | | | | | - Fixed JS error that prevent the conflict dialog to open #5060 - Fixed JS error that prevented the overwrite case to run
* | Merge pull request #5207 from owncloud/fixing-4011-part2-masterThomas Müller2013-10-111-1/+1
|\ \ | | | | | | [OC6] file upload exception handling
| * | catch exceptions while uploading and pass on the error messageThomas Müller2013-10-081-1/+1
| | |
* | | File actions are now updated after create/upload fileVincent Petry2013-10-111-2/+5
| |/ |/| | | | | | | | | | | | | The file actions must explicitly be updated by calling FileActions.display() on the file element after creating or uploading a file. Fixes #4971 and #4993
* | canceling individual uploads is currently impossible because there is no ↵Jörn Friedrich Dreyer2013-10-071-20/+0
|/ | | | placeholder
* Merge branch 'fix_3728_with_file_exists_dialog' of github.com:owncloud/core ↵Jörn Friedrich Dreyer2013-09-191-1/+1
|\ | | | | | | into fix_3728_with_file_exists_dialog
| * Merge branch 'fix_3728_with_file_exists_dialog' of github.com:owncloud/core ↵Thomas Müller2013-09-191-26/+26
| |\ | | | | | | | | | | | | | | | | | | into fix_3728_with_file_exists_dialog Conflicts: apps/files/js/file-upload.js
| * | fixing typos and l10nThomas Müller2013-09-191-1/+1
| | |
* | | fix double translation of error messageJörn Friedrich Dreyer2013-09-191-1/+1
| |/ |/|
* | jsdoc types should go into {}Jörn Friedrich Dreyer2013-09-191-26/+26
|/
* hide excessive logging with a trace flagJörn Friedrich Dreyer2013-09-181-18/+21
|
* Merge branch 'master' into fix_3728_with_file_exists_dialogJörn Friedrich Dreyer2013-09-181-178/+182
|\ | | | | | | | | Conflicts: apps/files/js/file-upload.js
| * refactor upload progressJörn Friedrich Dreyer2013-09-161-135/+173
| |
* | use existsJörn Friedrich Dreyer2013-09-171-1/+1
| |
* | Merge branch 'master' into fix_3728_with_file_exists_dialogJörn Friedrich Dreyer2013-09-171-4/+9
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: apps/files/css/files.css apps/files/js/file-upload.js apps/files/js/filelist.js apps/files/js/files.js apps/files_sharing/js/public.js core/js/jquery.ocdialog.js core/js/oc-dialogs.js
| * refactor upload js & html to always use only js to fill form dataJörn Friedrich Dreyer2013-09-131-9/+11
| |
* | Merge branch 'master' into fix_3728_with_file_exists_dialogJörn Friedrich Dreyer2013-09-101-76/+75
|\| | | | | | | | | Conflicts: apps/files/js/file-upload.js
| * Merge pull request #4647 from owncloud/fix_4619Thomas Müller2013-09-101-0/+3
| |\ | | | | | | Workaround for IE 9 & 10 for clicking filelist after adding new item
| | * Workaround for IE 9 & 10 for clicking filelist after adding new itemringmaster2013-08-291-0/+3
| | |