Fix upload file name

Server accepts .ogg only
This commit is contained in:
Arun Raghavan 2012-11-11 16:38:36 +05:30
parent 363cd8b3e7
commit 7c828bd939

View file

@ -142,6 +142,7 @@ public class UploadService extends IntentService {
} else if (mimeType.startsWith("audio/")) {
String srcPath = this.getRealPathFromURI(mediaUri);
File destFile = File.createTempFile("org.wikimedia.commons", ".ogg");
filename = filename + ".ogg";
Log.d("Commons", "Path is " + srcPath);
Log.d("Commons", "Dest is " + destFile.getAbsolutePath());