]> source.dussan.org Git - nextcloud-server.git/commit
A folder should get a folder mimetype 12297/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 29 Oct 2018 20:35:08 +0000 (21:35 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Tue, 6 Nov 2018 07:02:21 +0000 (08:02 +0100)
commit41c8a9314ccce017a29b6d291ad86bbf697ddfac
tree7704eb7adbea43cdd01ca4e4ad07c63a243bcdf1
parent288991a61081639e245c3fa28a62ffa8a30ba331
A folder should get a folder mimetype

If doing achunked upload the mimetype of the folder would otherwise be
guessed from the path. Which always returned application/octet-stream.

If an access control rule to block that is in place this means that all
chunked uploads fail hard in directories as the isCreatable on the
directory always fails.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/workflowengine/lib/Check/FileMimeType.php