aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/file-upload.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Parse Sabre Exception in OC.Files.Client and file-uploadVincent Petry2017-11-131-6/+29
| | | | | | | | In case of error, instead of a generic error message, an upload will display whichever message is returned in the Sabre Exception, if applicable. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Enable chunking for bigger files in authenticated web uploadVincent Petry2017-11-031-12/+59
| | | | | | | | | | | | | | | | This commit adds chunked uploads in the Web UI (for authenticated users, but not for public uploads). To do that the server endpoint used by the uploader is changed from WebDAV v1 to WebDAV v2. The chunking itself is done automatically by the jQuery-File-Upload plugin when the "maxChunkSize" parameter is set; in "fileuploadchunksend" the request is adjusted to adapt the behaviour of the plugin to the one expected by "uploads/" in WebDAV v2. The chunk size to be used by the Web UI can be set in the "max_chunk_size" parameter of the Files app configuration. By default it is set to 10MiB. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add space between ellipsis and wordMorris Jobke2017-10-251-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update file-upload.jsrakekniven2017-10-071-2/+2
| | | Fixed tiny translation issues. Removed space before ellipsis.
* Don't try the actual file upload if the checks already error outRoeland Jago Douma2017-08-261-0/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Replace ... with …Morris Jobke2017-08-231-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show "Uploading..." in web UI for long uploadsMorris Jobke2017-08-231-0/+4
| | | | | | | | If the estimated upload time is bigger than 4 hours it shows the text "Uploading..." because the time then doesn't give any good hint to the user anyways. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix uploadrate value of 'original-title' attributeBekcpear2017-06-161-1/+1
| | | | | | | The unit of `data.bitrate` is bit, but the argument unit of `humanFileSize` function is byte, so it should be divided by 8. Signed-off-by: Yaojin Qian <i@ume.ink>
* Fix upload remaining timeBekcpear2017-06-161-12/+14
| | | | | | | | | | | | | The upload remaining time is always 'a few second' whatever a big or a small file uploading. This commit fixes it. The `new Date().getMilliseconds()` only return a three digits number. When time arrived the next second, the millisecond start from ZERO again. So `new Date().getTime()` is the righe choice. And remaining time variables shoule be initialized when the file starts uploading, otherwise the remaining time of a new upload will always be 'Infinity years' until you refresh the page. Signed-off-by: Yaojin Qian <i@ume.ink>
* Remove dependency on jquery-migrate.js for browser detectionMorris Jobke2017-05-011-1/+1
| | | | | | * ref #4628 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4153 from nextcloud/fix-uploadJoas Schilling2017-04-061-1/+2
|\ | | | | Fix upload of folders in Chrome
| * Fix upload of folders in ChromeMorris Jobke2017-04-061-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Some more hardeningJoas Schilling2017-04-041-6/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | file-upload.js modified : Remaining upload time correctedSarthikaDhawan2017-04-041-1/+10
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* added quit option in commentstabview.jsnoveens2017-03-231-11/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | added quit option in notif in app.js added quit option in notif in file-upload.js added quit option in notif in fileinfomodel.js added quit option in notif in filelist.js added quit option in notif in filelist.js added quit option in notif in tagsplugin.js added quit option in notif in statusmanager.js added quit option in notif in external.js added quit option in notif in versionstabview.js added quit option in notif in notification.js changes according to the latest review. timeout removed since there is a button to close it translation capability added typo fixed test files updated small errors fixed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont preserve mtime when uploading trough the web interfaceRobin Appelman2017-03-131-5/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Correct incorrectly typed X-OC-Mtime headerStefan Schneider2017-03-101-1/+1
| | | | Signed-off-by: Stefan Schneider <stefan.schneider@squareweave.com.au>
* fix typoMorris Jobke2017-02-281-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace deprecated $.tipsy(...) by $.tooltip(...)Christoph Wurst2017-02-271-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #2763 from nextcloud/fix_maindetailsview_favorite_star-patchLukas Reschke2016-12-231-31/+0
|\ | | | | [downstream] Fix maindetailsview favorite star patch
| * OC.Uploader does not have a 'state' method, therefore theChristoph Wurst2016-12-231-31/+0
| | | | | | | | | | | | dead code can be removed Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Just use moment to comupte the time left for the upload - translations are ↵Thomas Müller2016-12-221-37/+3
|/ | | | | | delivered as part of moment.js - fixes #26804 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* 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
| |