aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixed many issues, clean upVincent Petry2014-05-151-3/+0
| | | | | | | | | | | | | | | - fixed upload and storage statistics - fixed infinite scroll to use the correct contain for scroll detection - fixed unit test that sometimes fail for rename case - controls are now sticky again - fixed selection overlay to be aligned with the table - fixed "select all" checkbox that had id conflicts - fixed public page - fixed global actions permissions detection - fix when URL contains an invalid view id - viewer mode now hides the sidebar (ex: text editor) - added unit tests for trashbin - clean up storage info in template (most is retrieved via ajax call now)
* Namespacing for FileList, FileActions and trashbin appVincent Petry2014-05-151-6/+6
| | | | | | | | | | | | | | | | | - FileList is now an instantiable class - FileActions is now in namespace - added App class for trashbin app - moved trashbin overrides into classes extending FileList - replaced many static calls with "this." or "self." to make the classes reusable/extendable - new URL parameter "view" to specify which view is shown, for example "files" or "trashbin" - added OC.Util.History utility class in core for handling history - moved URL handling/routing to OCA.Files.App - popstate will correctly update the current view and notify the view of the URL change so it can update the current dir - added JS unitt tests for the trashbin app - fixed public app to work with the new namespaces
* polish jslint for files-upload.jsJörn Friedrich Dreyer2014-05-091-45/+61
|
* Fixed insertion of filesVincent Petry2014-04-281-3/+3
| | | | | | | | | Removed "insert" flag, inserting is by default for FileList.add(). Added "animate" flag to FileList.add(). Added logic to correctly detect when to insert/append elements whenever the insertion point is visible or not. Fixed "render next page" logic to work correctly when many pages of files have been added.
* we no longer need to handle the Shared folder different from any other folderBjoern Schiessle2014-04-231-3/+1
|
* add link to further discussion about that folder checkThomas Müller2014-04-151-0/+1
|
* fix single file upload in firefoxThomas Müller2014-04-101-1/+5
|
* In cases folder drag and drop is not supported a proper message is displayedThomas Müller2014-04-091-5/+12
|
* Merge branch 'master' of https://github.com/lukepolo/core-1 into lukepolo-masterThomas Müller2014-04-071-1/+3
|\ | | | | | | | | Conflicts: apps/files/js/file-upload.js
| * Feature Added : Ability to drag and drop in ChromeLuke Policinski2014-02-191-1/+2
| |
* | 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
| |/ |/|