aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
Commit message (Collapse)AuthorAgeFilesLines
* Fix showConflictpflug2016-12-191-1/+12
| | | | | | | use getFullFileName to show conflicting file add original.directory to make fileExists happy Signed-off-by: Andreas Pflug <dev@admin4.org>
* fix type in jsdocArthur Schiwon2016-12-061-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Upload autorename on client sideVincent Petry2016-11-021-31/+54
| | | | | | | | | | | Removes the need for POST to collection which would hit against upload limits. The client tries to auto rename the file by adding a suffix "(2)". It tries to use the file list on the client side to guess a suitable name. In case a file still cannot be uploaded and creates a conflict, which can happen when the file was concurrently uploaded, the logic will continue increasing the suffix.
* Remove upload_limit in files app as it is not needed with PUT upload (#26069)Vincent Petry2016-11-021-14/+1
| | | | | | | The web UI now uses for PUT uploads which aren't restricted by PHP's upload_max_filesize and post_max_size Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Highlight files and update storage stats at end of upload (#26164)Vincent Petry2016-10-251-0/+1
| | | | | Properly trigger the "stop" even from the uploader. Also update storage stats at the end of all uploads instead of for each upload.
* More fixes to file uploadVincent Petry2016-10-241-13/+15
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix js unit tests for webdav put upload changesVincent Petry2016-10-241-3/+13
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add support for chunked uploadVincent Petry2016-10-241-36/+105
| | | | | | | Hacked around Blueimp's jquery.fileupload to make it work with our new chunking API. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-228/+562
| | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #1520 from nextcloud/upload-allow-zeroMorris Jobke2016-09-261-4/+0
|\ | | | | Allow uploading empty files (#26113)
| * Allow uploading empty files (#26113)Vincent Petry2016-09-261-4/+0
| | | | | | | | | | | | Downstreaming of https://github.com/owncloud/core/pull/26113 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Fix folder drag glitch in FirefoxMorris Jobke2016-09-141-6/+16
|/ | | | | | | | | issue: * drag'n'drop a folder into the files app in Firefox * the highlight stays there because Firefox doesn't trigger the drop event for folders solution: * behave like the drop event if the dragover event isn't fired for 100ms (only applied in Firefox)
* Fix the HTML encoding when uploading a folder in FF when using french l10nJoas Schilling2016-07-201-2/+2
|
* changes emptycontent icon to drag-accept on file-dragVincent Chan2016-06-231-1/+2
|
* store icons in classVincent Chan2016-06-151-2/+5
|
* dragging over folder will highlight folder onlyVincent Chan2016-06-151-0/+3
|
* restrict dropZone to app-content divVincent Chan2016-06-151-1/+1
|
* change folder icon when dragging over a directoryVincent Chan2016-06-151-2/+13
|
* adds visual indication for file drag and dropVincent Chan2016-06-131-2/+7
|
* Merge branch 'Superduper-Progressbar-branch-thingie' of ↵Vincent Petry2016-05-121-2/+75
|\ | | | | | | https://github.com/luckydonald/core into luckydonald-Superduper-Progressbar-branch-thingie
| * Optimized time formatting, optimized time smoothing.luckydonald2014-08-141-11/+8
| |
| * Changes for scrutinizer. Yay!luckydonald2014-08-131-15/+29
| |
| * fixed browser showing the tipsy tooltip as default tooltip twice.luckydonald2014-08-131-1/+1
| |
| * Fixed "Any minute now" staying because of undefined buffer. Also increased ↵luckydonald2014-08-131-3/+6
| | | | | | | | buffer size to 20 to be less jittery.
| * Updated String formatting. Label font-weight was already normal.luckydonald2014-08-131-10/+10
| |
| * Fixed Positioning, fixed formatting for both mobile and desktop.luckydonald2014-08-131-6/+37
| | | | | | | | | | Tooltips still frustrate me- And the updated code with tabs nicely. yay.
| * Added remaining time displaying, moved Information to tooltip, removed now ↵luckydonald2014-08-121-4/+26
| | | | | | | | unneeded speed div
| * Updated and optimized Mobile Layout as well.luckydonald2014-08-111-2/+3
| |
| * 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
| | |