Skip to content

Commit 2a1e26d

Browse files
Update file version
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent 16b6d28 commit 2a1e26d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

library/src/androidTest/java/com/owncloud/android/lib/resources/files/ReadFileVersionsRemoteOperationIT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ReadFileVersionsRemoteOperationIT : AbstractIT() {
2222
fun listVersions() {
2323
val txtFile = getFile(ASSETS__TEXT_FILE_NAME)
2424
val filePath = "/test.md"
25-
val mimetype = "txt/plain"
25+
val mimetype = "text/markdown"
2626

2727
var uploadResult =
2828
UploadFileRemoteOperation(

library/src/main/java/com/owncloud/android/lib/resources/files/model/FileVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public boolean isFolder() {
7171

7272
@Override
7373
public long getFileLength() {
74-
return 0;
74+
return fileLength;
7575
}
7676

7777
public void setMimeType(String mimeType) {

0 commit comments

Comments
 (0)