mirror of
https://github.com/appwrite/sdk-for-android.git
synced 2026-04-07 19:17:49 +00:00
fix: realtime event payload
This commit is contained in:
@@ -21,7 +21,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
storage.createFile(
|
||||
"[BUCKET_ID]",
|
||||
"[FILE_ID]",
|
||||
File("./path-to-files/image.jpg"),
|
||||
File("file.png"),
|
||||
new Continuation<Object>() {
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -20,7 +20,7 @@ class MainActivity : AppCompatActivity() {
|
||||
val response = storage.createFile(
|
||||
bucketId = "[BUCKET_ID]",
|
||||
fileId = "[FILE_ID]",
|
||||
file = File("./path-to-files/image.jpg"),
|
||||
file = File("file.png"),
|
||||
)
|
||||
val json = response.body?.string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user