aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fixed translations, indentation and renamed the .percents class to .speed class.luckydonald2014-08-101-5/+5
| |
| * Upload progress bar now displays informations about uploades size (12kB of ↵luckydonald2014-08-101-1/+6
| | | | | | | | 3MB) and the current speed.
* | replace $.parseJSON() by JSON.parse()Christoph Wurst2016-04-191-1/+1
| |
* | Disable pastezone for jquery.fileuploadLukas Reschke2016-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | jquery.fileupload offers the [`pastezone`](https://github.com/blueimp/jQuery-File-Upload/wiki/Options#pastezone) functionality. This functionality is enabled by default and if somebody copy-pastes something into Chrome it will automatically trigger an upload of the content to any configured jquery.fileupload element embedded in the JS. This implementation triggers some problems: 1. The pastezone is defined globally by default (:see_no_evil:). So if there are multiple fileupload's on a page (such as in the personal settings) then stuff is going to be uploaded to all embedded uploads. 2. Our server code is not able to parse the data. For example for uploads in the files app we expect a file name which is not specified => Just an error is thrown. You can reproduce this by taking a file into your clipboard and in Chrome then pressing <kbd>CTRL + V</kbd>. 3. When copy-pasting some string from MS Office on the personal page a temporary avatar with said content is created. Considering that this is anyways was never working at all and causes bugs I've set the `pastezone` to `null`. This mens that upload via copy and paste will be disabled. Lesson learned: Third-party JS libraries can have some weird details.
* | Accumulate notifications instead of blinkingVincent Petry2016-02-221-1/+5
| | | | | | | | | | This makes it possible to display multiple notifications. If the options.type is set to "error", it will also add a close button.
* | Defer quota check in web UI when overwriting shared fileVincent Petry2016-02-171-7/+36
| | | | | | | | | | | | | | | | When receiving a shared file, the quota for that file counts in the owner's storage, not the current user's storage. To make it possible to overwrite the file even when the current user doesn't have enough space, the quota check is deferred for such files.
* | Fix file upload, conflict dialog, also in public linkVincent Petry2015-10-211-11/+33
| | | | | | | | | | | | | | | | - Use "FileList" instead of "OCA.Files.App.fileList" that doesn't exist in public link page. - Fix public link upload by properly adding the form data using a new utility function "addFormData". That one is needed because IE8 upload and regular upload use a different format...
* | Debounce cancel upload messageVincent Petry2015-10-121-6/+5
| |
* | Revert "Debounce cancel upload message"Thomas Müller2015-10-121-5/+6
| |
* | Debounce cancel upload messageVincent Petry2015-10-071-6/+5
| |
* | Make sure the conflict dialog is loaded before adding conflictsVincent Petry2015-10-021-2/+5
| |
* | Show conflict dialog before upload when possibleVincent Petry2015-09-281-19/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | When uploading files, first check if the files exist in the current file list. For the ones that do, show a conflict dialog. For the rest, upload directly. If the upload operation detects a conflict on the server side, it will also continue populating the conflict dialog. From now on, server side conflict can only occur if someone concurrently uploaded a file into the same folder but the current user hasn't refreshed the list yet.
* | Combine upload action into the "New" menuVincent Petry2015-08-281-149/+0
| | | | | | | | Refactored the new menu to be encapsulated in the NewFileMenu JS class
* | Fix file name validation in New menuVincent Petry2015-04-271-9/+3
| |
* | Revert "add https:// placeholder for From Link feature. closes #13255"Robin McCorkell2015-03-261-1/+1
| | | | | | | | This reverts commit 18b5966f3a7639c6190f58b0d94e05e67200d57a.
* | Merge pull request #13941 from owncloud/fix-folder-upload-on-firefoxLukas Reschke2015-03-231-0/+9
|\ \ | | | | | | Show message if upload of folder isn't allowed
| * | Show message if upload of folder isn't allowedMorris Jobke2015-02-061-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | * current firefox doesn't throw an exception anymore * it just reads 0 bytes -> folder or empty file * upload of folder or empty file isn't supported in every browser except Chrome * fixes #13940
* | | Remove "Download from URL" featureLukas Reschke2015-03-021-53/+1
|/ / | | | | | | Fixes https://github.com/owncloud/core/issues/13326
* | add https:// placeholder for From Link feature. closes #13255Volkan Gezer2015-01-121-1/+1
| |
* | Merge pull request #12941 from owncloud/wave-accessibility-complianceMorris Jobke2014-12-191-4/+9
|\ \ | | | | | | Wave accessibility compliance
| * | properly escape variableJan-Christoph Borchardt2014-12-181-1/+1
| | |
| * | fix accessibility for 'New' file inputsJan-Christoph Borchardt2014-12-181-1/+6
| | |
| * | fix accessibility of file uploadJan-Christoph Borchardt2014-12-181-3/+3
| | |
* | | show spinner on file upload in IE8, 9Morris Jobke2014-12-181-0/+15
|/ /
* | show readonly message in file conflict dialog, make it always selectedJörn Friedrich Dreyer2014-12-111-2/+13
| |
* | Improved Javascript docs for JSDocVincent Petry2014-10-311-1/+1
| | | | | | | | | | | | Added namespaces so that JSDoc can find them. Fixed a few warnings. Improved some comments.
* | Scroll to new file/folder after addingVincent Petry2014-09-041-2/+2
| | | | | | | | | | When creating a new file from the menu, the list now scrolls to that file.
* | Highlight every uploaded files and scroll down to the last onepdessauw2014-09-031-0/+8
| |
* | Compare upload limit against biggest fileOliver Gasser2014-08-121-4/+7
|/ | | | | When uploading multiple files from the web interface, compare the PHP upload limit against the largest file, not against the sum of all files.
* Breadcrumb width calculation fixVincent Petry2014-06-271-9/+18
| | | | | | | | | | | | | | Rewrote the breadcrumb calculation to be more readable. Breadcrumb now has a setMaxWidth() method to set the maximum allowed width which is used to fit the breadcrumbs. The breadcrumb width is now based on the container width, passed through setMaxWidth() by the FileList class. Now using fixed widths for the test crumbs to simulate consistent widths across browsers which rendering engines might usually yield different results.
* Fixed uploading by drag and drop into folderVincent Petry2014-06-191-1/+1
|
* 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