Skip to content

Commit a143c0f

Browse files
authored
docs: improve ParseFile information (#395)
1 parent 15d1724 commit a143c0f

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
### 4.9.1
88
[Full Changelog](https://github.com/parse-community/Parse-Swift/compare/4.9.0...4.9.1)
9+
910
__Fixes__
1011
- Corrects a memory leak where multiple Parse URLSessions can get created. Use an actor for the url session delegates to ensure thread safety when making async calls in parallel ([#394](https://github.com/parse-community/Parse-Swift/pull/394)), thanks to [Corey Baker](https://github.com/cbaker6).
1112

Sources/ParseSwift/Types/ParseFile.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ public struct ParseFile: Fileable, Savable, Fetchable, Deletable, Hashable {
6767
Creates a file with given data and name.
6868
- parameter name: The name of the new `ParseFile`. The file name must begin with and
6969
alphanumeric character, and consist of alphanumeric characters, periods, spaces, underscores,
70-
or dashes. The default value is "file".
70+
or dashes. The default value is **file**.
7171
- parameter data: The contents of the new `ParseFile`.
7272
- parameter mimeType: Specify the Content-Type header to use for the file, for example
73-
"application/pdf". The default is nil. If no value is specified the file type will be inferred from the file
73+
**application/pdf**. The default is nil. If no value is specified the file type will be inferred from the file
7474
extention of `name`.
7575
- parameter metadata: Optional key value pairs to be stored with file object
7676
- parameter tags: Optional key value pairs to be stored with file object
77-
- note: `metadata` and `tags` is file adapter specific and not supported by all file adapters.
77+
- note: `metadata` and `tags` are file adapter specific and not supported by all file adapters.
7878
For more, see details on the
7979
[S3 adapter](https://github.com/parse-community/parse-server-s3-adapter#adding-metadata-and-tags)
8080
*/
@@ -94,14 +94,14 @@ public struct ParseFile: Fileable, Savable, Fetchable, Deletable, Hashable {
9494
Creates a file from a local file path and name.
9595
- parameter name: The name of the new `ParseFile`. The file name must begin with and
9696
alphanumeric character, and consist of alphanumeric characters, periods, spaces, underscores,
97-
or dashes. The default value is "file".
97+
or dashes. The default value is **file**.
9898
- parameter localURL: The local file path of the`ParseFile`.
9999
- parameter mimeType: Specify the Content-Type header to use for the file, for example
100-
"application/pdf". The default is nil. If no value is specified the file type will be inferred from the file
100+
**application/pdf**. The default is nil. If no value is specified the file type will be inferred from the file
101101
extention of `name`.
102102
- parameter metadata: Optional key value pairs to be stored with file object.
103103
- parameter tags: Optional key value pairs to be stored with file object.
104-
- note: `metadata` and `tags` is file adapter specific and not supported by all file adapters.
104+
- note: `metadata` and `tags` are file adapter specific and not supported by all file adapters.
105105
For more, see details on the
106106
[S3 adapter](https://github.com/parse-community/parse-server-s3-adapter#adding-metadata-and-tags).
107107
*/
@@ -120,14 +120,14 @@ public struct ParseFile: Fileable, Savable, Fetchable, Deletable, Hashable {
120120
Creates a file from a link online and name.
121121
- parameter name: The name of the new `ParseFile`. The file name must begin with and
122122
alphanumeric character, and consist of alphanumeric characters, periods, spaces, underscores,
123-
or dashes. The default value is "file".
123+
or dashes. The default value is **file**.
124124
- parameter cloudURL: The online link of the`ParseFile`.
125125
- parameter mimeType: Specify the Content-Type header to use for the file, for example
126-
"application/pdf". The default is nil. If no value is specified the file type will be inferred from the file
126+
**application/pdf**. The default is nil. If no value is specified the file type will be inferred from the file
127127
extention of `name`.
128128
- parameter metadata: Optional key value pairs to be stored with file object.
129129
- parameter tags: Optional key value pairs to be stored with file object.
130-
- note: `metadata` and `tags` is file adapter specific and not supported by all file adapters.
130+
- note: `metadata` and `tags` are file adapter specific and not supported by all file adapters.
131131
For more, see details on the
132132
[S3 adapter](https://github.com/parse-community/parse-server-s3-adapter#adding-metadata-and-tags).
133133
*/

0 commit comments

Comments
 (0)