Uploading Photos in iOS App stops at 120 kb


#1

Steps to reproduce

  1. Install

Expected behaviour

Image should be completly uploaded

Actual behaviour

I open the ownCloud App on iOS and I tap on “Upload Photo/Video”.
Then i select a photo from my iPhone to upload it to owncloud.
The Upload starts and the app says that the photo was uploaded with the original size.
But when i open the photo it is corrupted. I only see a small ribbon of the original photo. The rest of the photo is just grey. When i check the size of the uploaded photo it has only 120 kb.
This happens with every photo or video i try to upload.

Unfortunately this happens just with my private instance of OwnCloud. I have tested the same procedure with an owncloud 10 instance of one of my customers (hosted on an dedicated server). This doesn’t happen with that instance.

Server configuration

Web server:
Unknown. Webhosting (1blu)

Database:
MySQLi 5.5.60

PHP version:
PHP 7.0.30-0ubuntu0.16.04.1

ownCloud version:
10.0.8.5

Storage backend (external storage):

Client

iOS version:
11.3

ownCloud app version:
3.7.5

Device model:
iPhone 6 16 GB

ownCloud log (data/owncloud.log)

{"reqId":"Wy35sLL@Co4AAG8doAYAAAAN","level":0,"time":"2018-06-23T07:41:36+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"webdav","method":"PROPFIND","url":"\/owncloud\/remote.php\/webdav\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"Exception: {\"Message\":\"HTTP\\\/1.1 404 File with name Bilder Smartphone\\\/Photo-2018-06-22-17-51-46_0121.JPG could not be located\",\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\NotFound\",\"Code\":0,\"Trace\":\"#0 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(966): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath('Bilder Smartpho...')\\n#1 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1665): Sabre\\\\DAV\\\\Server->getPropertiesIteratorForPath('Bilder Smartpho...', Array, 0)\\n#2 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(355): Sabre\\\\DAV\\\\Server->generateMultiStatus(Object(Generator), false)\\n#3 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPropFind(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#4 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#5 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PROPFIND', Array)\\n#6 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#7 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v1\\\/webdav.php(63): Sabre\\\\DAV\\\\Server->exec()\\n#8 \\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/hp\\\/bq\\\/ab\\\/es\\\/ww...')\\n#9 {main}\",\"File\":\"\\\/hp\\\/bq\\\/ab\\\/es\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php\",\"Line\":193,\"User\":\"bjoern\"}"}
{"reqId":"Wy35sLL@Co4AAH7CEpEAAADB","level":2,"time":"2018-06-23T07:41:39+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"no app in context","method":"PUT","url":"\/owncloud\/remote.php\/webdav\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"Encryption module \"\" not found, file will be stored unencrypted (Default encryption module not loaded)"}
{"reqId":"Wy35urL@Co4AAG8doFkAAAAN","level":0,"time":"2018-06-23T07:41:46+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"core","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/64\/64\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"Generating preview for \"files\/Bilder Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG\" with \"OC\\Preview\\JPEG\""}
{"reqId":"Wy35urL@Co4AAG8doFkAAAAN","level":0,"time":"2018-06-23T07:41:46+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"core","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/64\/64\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"OC_Image->fixOrientation() Orientation: 3"}
{"reqId":"Wy35urL@Co4AAG8doFkAAAAN","level":2,"time":"2018-06-23T07:41:47+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/64\/64\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"Encryption module \"\" not found, file will be stored unencrypted (Default encryption module not loaded)"}
{"reqId":"Wy35urL@Co4AAG8doFkAAAAN","level":2,"time":"2018-06-23T07:41:47+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/64\/64\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"Encryption module \"\" not found, file will be stored unencrypted (Default encryption module not loaded)"}

Tell us what could be improved:


#2

same for me :frowning:
any solutions ?


#3
{"reqId":"Wy35urL@Co4AAG8doFkAAAAN","level":2,"time":"2018-06-23T07:41:47+00:00","remoteAddr":"88.130.54.159","user":"bjoern","app":"no app in context","method":"GET","url":"\/owncloud\/index.php\/apps\/files\/api\/v1\/thumbnail\/64\/64\/Bilder%20Smartphone\/Photo-2018-06-22-17-51-46_0121.JPG","message":"Encryption module \"\" not found, file will be stored unencrypted (Default encryption module not loaded)"}

Maybe fix this first and retry? Check the documentation to know how to setup encryption.