mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fix upload file name
Server accepts .ogg only
This commit is contained in:
parent
363cd8b3e7
commit
7c828bd939
1 changed files with 1 additions and 0 deletions
|
|
@ -142,6 +142,7 @@ public class UploadService extends IntentService {
|
||||||
} else if (mimeType.startsWith("audio/")) {
|
} else if (mimeType.startsWith("audio/")) {
|
||||||
String srcPath = this.getRealPathFromURI(mediaUri);
|
String srcPath = this.getRealPathFromURI(mediaUri);
|
||||||
File destFile = File.createTempFile("org.wikimedia.commons", ".ogg");
|
File destFile = File.createTempFile("org.wikimedia.commons", ".ogg");
|
||||||
|
filename = filename + ".ogg";
|
||||||
Log.d("Commons", "Path is " + srcPath);
|
Log.d("Commons", "Path is " + srcPath);
|
||||||
Log.d("Commons", "Dest is " + destFile.getAbsolutePath());
|
Log.d("Commons", "Dest is " + destFile.getAbsolutePath());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue