Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 654 for Upload (0.06 seconds)

  1. tests/test_tutorial/test_request_files/test_tutorial001_02.py

    
    def test_post_uploadfile_no_body(client: TestClient):
        response = client.post("/uploadfile/")
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "No upload file sent"}
    
    
    def test_post_file(tmp_path: Path, client: TestClient):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
    
        with path.open("rb") as file:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 18:19:10 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  2. cmd/erasure-object_test.go

    			ObjectOptions{Versioned: testCase.versioned})
    		if err != nil {
    			t.Fatalf("Test %d: Failed to upload a random object: %v", i+1, err)
    		}
    
    		// Step 3: Upload the object with some disks offline
    		sets.erasureDisksMu.Lock()
    		xl.getDisks = func() []StorageAPI {
    			disks := make([]StorageAPI, len(origErasureDisks))
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 38.3K bytes
    - Click Count (0)
  3. internal/config/subnet/subnet.go

    )
    
    const (
    	respBodyLimit = 1 << 20 // 1 MiB
    
    	// LoggerWebhookName - subnet logger webhook target
    	LoggerWebhookName = "subnet"
    )
    
    // Upload given file content (payload) to specified URL
    func (c Config) Upload(reqURL string, filename string, payload []byte) (string, error) {
    	if !c.Registered() {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  4. cmd/callhome.go

    		}
    	}
    }
    
    const (
    	subnetHealthPath = "/api/health/upload"
    )
    
    func sendHealthInfo(ctx context.Context, healthInfo madmin.HealthInfo) error {
    	url := globalSubnetConfig.BaseURL + subnetHealthPath
    
    	filename := fmt.Sprintf("health_%s.json.gz", UTCNow().Format("20060102150405"))
    	url += "?filename=" + filename
    
    	_, err := globalSubnetConfig.Upload(url, filename, createHealthJSONGzip(ctx, healthInfo))
    	return err
    }
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  5. cmd/object-api-putobject_test.go

    	}
    	opts := ObjectOptions{}
    	// Initiate Multipart Upload on the above created bucket.
    	res, err := obj.NewMultipartUpload(context.Background(), bucket, object, opts)
    	if err != nil {
    		// Failed to create NewMultipartUpload, abort.
    		t.Fatalf("%s : %s", instanceType, err.Error())
    	}
    	uploadID := res.UploadID
    
    	// Upload part1.
    	fiveMBBytes := bytes.Repeat([]byte("a"), 5*humanize.MiByte)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 25.8K bytes
    - Click Count (0)
  6. .github/workflows/test.yml

          # Do not store coverage for all possible combinations to avoid file size max errors in Smokeshow
          - name: Store coverage files
            if: matrix.coverage == 'coverage'
            uses: actions/upload-artifact@v5
            with:
              name: coverage-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/coverage/.coverage.*') }}
              path: coverage
              include-hidden-files: true
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 08:53:59 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  7. cmd/test-utils_test.go

    }
    
    // return URL for a new multipart upload.
    func getNewMultipartURL(endPoint, bucketName, objectName string) string {
    	queryValue := url.Values{}
    	queryValue.Set("uploads", "")
    	return makeTestTargetURL(endPoint, bucketName, objectName, queryValue)
    }
    
    // return URL for a new multipart upload.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 77K bytes
    - Click Count (0)
  8. .github/workflows/osv-scanner-scheduled.yml

    # ==============================================================================
    
    name: OSV-Scanner Scheduled Scan
    
    on:
      schedule:
        - cron: 0 4 * * 1
    
    permissions:
      # Require writing security events to upload SARIF file to security tab
      security-events: write
      # Only need to read contents
      contents: read
    
    jobs:
      scan-scheduled:
        if: github.repository == 'tensorflow/tensorflow'
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Mon Dec 01 09:57:00 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  9. docs_src/request_files/tutorial001_02_py39.py

        else:
            return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(file: Union[UploadFile, None] = None):
        if not file:
            return {"message": "No upload file sent"}
        else:
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 508 bytes
    - Click Count (0)
  10. .teamcity/src/main/kotlin/promotion/PublishNightlySnapshotFromQuickFeedbackStepUpload.kt

            triggerName = "QuickFeedback",
        ) {
        init {
            id("Promotion_SnapshotFromQuickFeedbackStepUpload")
            name = "Nightly Snapshot (from QuickFeedback) - Upload"
            description = "Builds and uploads the latest successful changes on '${branch.branchName}' from Quick Feedback as a new distribution"
    
            steps {
                buildStep(
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Mar 20 06:13:56 GMT 2025
    - 1.7K bytes
    - Click Count (0)
Back to Top