🌐 Add Portuguese translation for docs/pt/docs/tutorial/request-files.md#12706
Conversation
|
📝 Docs preview for commit 94198ab at: https://4727b9a9.fastapitiangolo.pages.dev Modified Pages |
docs/pt/docs/tutorial/request-files.md
…onRequestFIle' into PortugueseTranslationRequestFIle
|
📝 Docs preview for commit 11aa32d at: https://e874cfc1.fastapitiangolo.pages.dev Modified Pages |
ceb10n
left a comment
There was a problem hiding this comment.
Great @devluisrodrigues ✨
|
|
||
| Importe `File` e `UploadFile` de `fastapi`: | ||
|
|
||
| //// tab | Python 3.9+ |
There was a problem hiding this comment.
See this issue: #12554
You can replace these blocks with:
{* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}There was a problem hiding this comment.
Ok, I'll take a look, and commit the changes. Thank you
|
|
||
| Crie parâmetros de arquivo da mesma forma que você faria para `Body` ou `Form`: | ||
|
|
||
| //// tab | Python 3.9+ |
There was a problem hiding this comment.
The same here: Update docs include syntax for source examples #12554
|
|
||
| Defina um parâmetro de arquivo com um tipo de `UploadFile`: | ||
|
|
||
| //// tab | Python 3.9+ |
There was a problem hiding this comment.
The same here: Update docs include syntax for source examples #12554
|
|
||
| Você pode tornar um arquivo opcional usando anotações de tipo padrão e definindo um valor padrão de `None`: | ||
|
|
||
| //// tab | Python 3.10+ |
There was a problem hiding this comment.
The same here: Update docs include syntax for source examples #12554
|
|
||
| Você também pode usar `File()` com `UploadFile`, por exemplo, para definir metadados adicionais: | ||
|
|
||
| //// tab | Python 3.9+ |
There was a problem hiding this comment.
The same here: Update docs include syntax for source examples #12554
|
|
||
| Para usar isso, declare uma lista de `bytes` ou `UploadFile`: | ||
|
|
||
| //// tab | Python 3.9+ |
There was a problem hiding this comment.
The same here: Update docs include syntax for source examples #12554
|
|
||
| Da mesma forma de antes, você pode usar `File()` para definir parâmetros adicionais, mesmo para `UploadFile`: | ||
|
|
||
| //// tab | Python 3.9+ |
There was a problem hiding this comment.
The same here: Update docs include syntax for source examples #12554
|
Thank you for your feedback @ceb10n and @nazarepiedady . I'll adress the changes and update my PR |
|
📝 Docs preview for commit cb7cbdb at: https://36fb23ee.fastapitiangolo.pages.dev Modified Pages |
Oh perfect, I can see now. Much cleaner interface! |
ceb10n
left a comment
There was a problem hiding this comment.
Thank you ❤️
Just missing some highlights
| ``` | ||
|
|
||
| //// | ||
| {* ../../docs_src/request_files/tutorial001_02_an_py310.py hl[17] *} |
There was a problem hiding this comment.
missed the highlight of the line 9:
{* ../../docs_src/request_files/tutorial001_02_an_py310.py hl[9,17] *}
| ``` | ||
|
|
||
| //// | ||
| {* ../../docs_src/request_files/tutorial001_03_an_py39.py hl[15] *} |
There was a problem hiding this comment.
here to:
{* ../../docs_src/request_files/tutorial001_03_an_py39.py hl[9,15] *}
| ``` | ||
|
|
||
| //// | ||
| {* ../../docs_src/request_files/tutorial002_an_py39.py hl[15] *} |
There was a problem hiding this comment.
here to:
{* ../../docs_src/request_files/tutorial002_an_py39.py hl[10,15] *}
There was a problem hiding this comment.
Ohh sorry, I got a little confused. I just fixed it!
|
Thank you again @ceb10n! Just fixed the missed highlights! |
|
📝 Docs preview for commit 074ccad at: https://9b8370d5.fastapitiangolo.pages.dev Modified Pages |
|
Thanks for your help! @devluisrodrigues 🥳 |
No description provided.