- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 51 for uploadable (0.19 sec)
-
src/cmd/vendor/golang.org/x/telemetry/internal/upload/findwork.go
// the counter data contained therein was all from after the asof // date. // // TODO(rfindley): store the begin date in reports, so that we can // verify this assumption. u.logger.Printf("Uploadable: %s", fi.Name()) ans.readyfiles = append(ans.readyfiles, filepath.Join(localdir, fi.Name())) } } else { // ...otherwise fall back on the old behavior of uploading all // unuploaded files. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:12:15 UTC 2024 - 3.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/reports.go
X: computeRandom(), // json encodes all the bits Week: expiryDate, LastWeek: lastWeek, } if report.X > u.config.SampleRate && u.config.SampleRate > 0 { u.logger.Printf("X: %f > SampleRate:%f, not uploadable", report.X, u.config.SampleRate) uploadOK = false } var succeeded bool for _, f := range countFiles { fok := false x, err := u.parseCountFile(f) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 14:52:56 UTC 2024 - 10.3K bytes - Viewed (0) -
docs/en/docs/reference/uploadfile.md
# `UploadFile` class You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request. You can import it directly from `fastapi`: ```python from fastapi import UploadFile ``` ::: fastapi.UploadFile options: members: - file - filename - size - headers - content_type - read
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 472 bytes - Viewed (0) -
docs/de/docs/reference/uploadfile.md
# `UploadFile`-Klasse Sie können *Pfadoperation-Funktionsparameter* als Parameter vom Typ `UploadFile` definieren, um Dateien aus dem Request zu erhalten. Sie können es direkt von `fastapi` importieren: ```python from fastapi import UploadFile ``` ::: fastapi.UploadFile options: members: - file - filename - size - headers - content_type
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 18:17:09 UTC 2024 - 495 bytes - Viewed (0) -
docs/em/docs/tutorial/request-files.md
✔️ 🤯 👈 👉 ⛓ 👈 🎂 🎚 🔜 🏪 💾. 👉 🔜 👷 👍 🤪 📁. ✋️ 📤 📚 💼 ❔ 👆 💪 💰 ⚪️➡️ ⚙️ `UploadFile`. ## 📁 🔢 ⏮️ `UploadFile` 🔬 📁 🔢 ⏮️ 🆎 `UploadFile`: ```Python hl_lines="12" {!../../../docs_src/request_files/tutorial001.py!} ``` ⚙️ `UploadFile` ✔️ 📚 📈 🤭 `bytes`: * 👆 🚫 ✔️ ⚙️ `File()` 🔢 💲 🔢. * ⚫️ ⚙️ "🧵" 📁:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 6.6K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
Keep in mind that this means that the whole contents will be stored in memory. This will work well for small files. But there are several cases in which you might benefit from using `UploadFile`. ## File Parameters with `UploadFile` Define a file parameter with a type of `UploadFile`: === "Python 3.9+" ```Python hl_lines="14" {!> ../../../docs_src/request_files/tutorial001_an_py39.py!} ``` === "Python 3.8+"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
Aber es gibt viele Fälle, in denen Sie davon profitieren, `UploadFile` zu verwenden. ## Datei-Parameter mit `UploadFile` Definieren Sie einen Datei-Parameter mit dem Typ `UploadFile`: === "Python 3.9+" ```Python hl_lines="14" {!> ../../../docs_src/request_files/tutorial001_an_py39.py!} ``` === "Python 3.8+"
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 17:58:08 UTC 2024 - 11.5K bytes - Viewed (0) -
tests/test_datastructures.py
app = FastAPI() testing_file_store: List[UploadFile] = [] @app.post("/uploadfile/") def create_upload_file(file: UploadFile): testing_file_store.append(file) return {"filename": file.filename} client = TestClient(app) with path.open("rb") as file: response = client.post("/uploadfile/", files={"file": file}) assert response.status_code == 200, response.text
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 2K bytes - Viewed (0) -
docs/zh/docs/tutorial/request-files.md
文件作为「表单数据」上传。 如果把*路径操作函数*参数的类型声明为 `bytes`,**FastAPI** 将以 `bytes` 形式读取和接收文件内容。 这种方式把文件的所有内容都存储在内存里,适用于小型文件。 不过,很多情况下,`UploadFile` 更好用。 ## 含 `UploadFile` 的文件参数 定义文件参数时使用 `UploadFile`: ```Python hl_lines="12" {!../../../docs_src/request_files/tutorial001.py!} ``` `UploadFile` 与 `bytes` 相比有更多优势: * 使用 `spooled` 文件: * 存储在内存的文件超出最大上限时,FastAPI 会把文件存入磁盘; * 这种方式更适于处理图像、视频、二进制文件等大型文件,好处是不会占用所有内存;
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 6.9K bytes - Viewed (0) -
tests/test_compat.py
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Sep 28 04:14:40 UTC 2023 - 2.8K bytes - Viewed (0)