Skip to content

Commit c3cb646

Browse files
committed
Use consistent placeholder format
1 parent f1a9c75 commit c3cb646

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

src/routes/docs/products/storage/upload-download/+page.markdoc

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,12 @@ You can also upload files programmatically using our SDKs:
146146
POST /v1/storage/buckets/{bucketId}/files HTTP/1.1
147147
Content-Type: multipart/form-data; boundary="cec8e8123c05ba25"
148148
Content-Length: *Length of your entity body in bytes*
149-
X-Appwrite-Project: [PROJECT_ID]
149+
X-Appwrite-Project: <PROJECT_ID>
150150

151151
--cec8e8123c05ba25
152152
Content-Disposition: form-data; name="operations"
153153

154-
{ "query": "mutation CreateFile($bucketId: String!, $fileId: String!, $file: InputFile!) { storageCreateFile(bucketId: $bucketId, fileId: $fileId, file: $file) { id } }", "variables": { "bucketId": "<BUCKET_ID>", "fileId": "[FILE_ID]", "file": null } }
154+
{ "query": "mutation CreateFile($bucketId: String!, $fileId: String!, $file: InputFile!) { storageCreateFile(bucketId: $bucketId, fileId: $fileId, file: $file) { id } }", "variables": { "bucketId": "<BUCKET_ID>", "fileId": "<FILE_ID>", "file": null } }
155155
--cec8e8123c05ba25
156156
Content-Disposition: form-data; name="map"
157157

@@ -391,7 +391,7 @@ client
391391
.setProject('<PROJECT_ID>') // Your project ID
392392
;
393393

394-
const promise = storage.getFile('<BUCKET_ID>', '[FILE_ID]');
394+
const promise = storage.getFile('<BUCKET_ID>', '<FILE_ID>');
395395

396396
promise.then(function (response) {
397397
console.log(response); // Success
@@ -413,7 +413,7 @@ void main() { // Init SDK
413413
// downloading file
414414
Future result = storage.getFile(
415415
bucketId: '<BUCKET_ID>',
416-
fileId: '[FILE_ID]',
416+
fileId: '<FILE_ID>',
417417
).then((bytes) {
418418
final file = File('path_to_file/filename.ext');
419419
file.writeAsBytesSync(bytes)
@@ -426,7 +426,7 @@ void main() { // Init SDK
426426
FutureBuilder(
427427
future: storage.getFile(
428428
bucketId: '<BUCKET_ID>',
429-
fileId: '[FILE_ID]',
429+
fileId: '<FILE_ID>',
430430
), //works for both public file and private file, for private files you need to be logged in
431431
builder: (context, snapshot) {
432432
return snapshot.hasData && snapshot.data != null
@@ -449,7 +449,7 @@ func main() async throws {
449449

450450
let byteBuffer = try await storage.getFile(
451451
bucketId: "<BUCKET_ID>",
452-
fileId: "[FILE_ID]"
452+
fileId: "<FILE_ID>"
453453
)
454454

455455
print(String(describing: byteBuffer)
@@ -476,7 +476,7 @@ class MainActivity : AppCompatActivity() {
476476

477477
val result = storage.getFile(
478478
bucketId = "<BUCKET_ID>",
479-
fileId = "[FILE_ID]"
479+
fileId = "<FILE_ID>"
480480
)
481481
println(result); // Resource URL
482482
}
@@ -491,7 +491,7 @@ const client = new Client()
491491

492492
const storage = new Storage(client);
493493

494-
const promise = storage.getFile('<BUCKET_ID>', '[FILE_ID]');
494+
const promise = storage.getFile('<BUCKET_ID>', '<FILE_ID>');
495495

496496
promise.then(function (response) {
497497
console.log(response); // Success
@@ -517,7 +517,7 @@ client
517517
.setProject('<PROJECT_ID>') // Your project ID
518518
;
519519

520-
const result = storage.getFileDownload('<BUCKET_ID>', '[FILE_ID]');
520+
const result = storage.getFileDownload('<BUCKET_ID>', '<FILE_ID>');
521521

522522
console.log(result); // Resource URL
523523
```
@@ -535,7 +535,7 @@ void main() { // Init SDK
535535
// downloading file
536536
Future result = storage.getFileDownload(
537537
bucketId: '<BUCKET_ID>',
538-
fileId: '[FILE_ID]',
538+
fileId: '<FILE_ID>',
539539
).then((bytes) {
540540
final file = File('path_to_file/filename.ext');
541541
file.writeAsBytesSync(bytes)
@@ -548,7 +548,7 @@ void main() { // Init SDK
548548
FutureBuilder(
549549
future: storage.getFileDownload(
550550
bucketId: '<BUCKET_ID>',
551-
fileId: '[FILE_ID]',
551+
fileId: '<FILE_ID>',
552552
), //works for both public file and private file, for private files you need to be logged in
553553
builder: (context, snapshot) {
554554
return snapshot.hasData && snapshot.data != null
@@ -569,7 +569,7 @@ func main() async throws {
569569
let storage = Storage(client)
570570
let byteBuffer = try await storage.getFileDownload(
571571
bucketId: "<BUCKET_ID>",
572-
fileId: "[FILE_ID]"
572+
fileId: "<FILE_ID>"
573573
)
574574

575575
print(String(describing: byteBuffer))
@@ -596,7 +596,7 @@ class MainActivity : AppCompatActivity() {
596596

597597
val result = storage.getFileDownload(
598598
bucketId = "<BUCKET_ID>",
599-
fileId = "[FILE_ID]"
599+
fileId = "<FILE_ID>"
600600
)
601601
println(result); // Resource URL
602602
}
@@ -633,7 +633,7 @@ client
633633
.setProject('<PROJECT_ID>') // Your project ID
634634
;
635635

636-
const result = storage.getFilePreview('<BUCKET_ID>', '[FILE_ID]');
636+
const result = storage.getFilePreview('<BUCKET_ID>', '<FILE_ID>');
637637

638638
console.log(result); // Resource URL
639639
```
@@ -651,7 +651,7 @@ void main() { // Init SDK
651651
// downloading file
652652
Future result = storage.getFilePreview(
653653
bucketId: '<BUCKET_ID>',
654-
fileId: '[FILE_ID]',
654+
fileId: '<FILE_ID>',
655655
).then((bytes) {
656656
final file = File('path_to_file/filename.ext');
657657
file.writeAsBytesSync(bytes)
@@ -664,7 +664,7 @@ void main() { // Init SDK
664664
FutureBuilder(
665665
future: storage.getFilePreview(
666666
bucketId: '<BUCKET_ID>',
667-
fileId: '[FILE_ID]',
667+
fileId: '<FILE_ID>',
668668
), //works for both public file and private file, for private files you need to be logged in
669669
builder: (context, snapshot) {
670670
return snapshot.hasData && snapshot.data != null
@@ -685,7 +685,7 @@ func main() async throws {
685685
let storage = Storage(client)
686686
let byteBuffer = try await storage.getFilePreview(
687687
bucketId: "<BUCKET_ID>",
688-
fileId: "[FILE_ID]"
688+
fileId: "<FILE_ID>"
689689
)
690690

691691
print(String(describing: byteBuffer))
@@ -712,7 +712,7 @@ class MainActivity : AppCompatActivity() {
712712

713713
val result = storage.getFilePreview(
714714
bucketId = "<BUCKET_ID>",
715-
fileId = "[FILE_ID]"
715+
fileId = "<FILE_ID>"
716716
)
717717
println(result); // Resource URL
718718
}
@@ -757,7 +757,7 @@ client
757757
.setProject('<PROJECT_ID>') // Your project ID
758758
;
759759

760-
const result = storage.getFileView('<BUCKET_ID>', '[FILE_ID]');
760+
const result = storage.getFileView('<BUCKET_ID>', '<FILE_ID>');
761761

762762
console.log(result); // Resource URL
763763
```
@@ -775,7 +775,7 @@ void main() { // Init SDK
775775
// downloading file
776776
Future result = storage.getFileView(
777777
bucketId: '<BUCKET_ID>',
778-
fileId: '[FILE_ID]',
778+
fileId: '<FILE_ID>',
779779
).then((bytes) {
780780
final file = File('path_to_file/filename.ext');
781781
file.writeAsBytesSync(bytes)
@@ -788,7 +788,7 @@ void main() { // Init SDK
788788
FutureBuilder(
789789
future: storage.getFileView(
790790
bucketId: '<BUCKET_ID>',
791-
fileId: '[FILE_ID]',
791+
fileId: '<FILE_ID>',
792792
), //works for both public file and private file, for private files you need to be logged in
793793
builder: (context, snapshot) {
794794
return snapshot.hasData && snapshot.data != null
@@ -809,7 +809,7 @@ func main() async throws {
809809
let storage = Storage(client)
810810
let byteBuffer = try await storage.getFileView(
811811
bucketId: "<BUCKET_ID>",
812-
fileId: "[FILE_ID]"
812+
fileId: "<FILE_ID>"
813813
)
814814

815815
print(String(describing: byteBuffer))
@@ -836,7 +836,7 @@ class MainActivity : AppCompatActivity() {
836836

837837
val result = storage.getFileView(
838838
bucketId = "<BUCKET_ID>",
839-
fileId = "[FILE_ID]"
839+
fileId = "<FILE_ID>"
840840
)
841841
println(result); // Resource URL
842842
}

0 commit comments

Comments
 (0)