Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 111 for filesize (0.06 sec)

  1. cmd/admin-handlers.go

    	blockSizeStr := r.Form.Get("blocksize")
    	fileSizeStr := r.Form.Get("filesize")
    
    	blockSize, err := strconv.ParseUint(blockSizeStr, 10, 64)
    	if err != nil {
    		blockSize = 4 * humanize.MiByte // default value
    	}
    
    	fileSize, err := strconv.ParseUint(fileSizeStr, 10, 64)
    	if err != nil {
    		fileSize = 1 * humanize.GiByte // default value
    	}
    
    	opts := madmin.DriveSpeedTestOpts{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  2. cmd/peer-rest-client.go

    	queryVals := make(url.Values)
    	if opts.Serial {
    		queryVals.Set("serial", "true")
    	}
    	queryVals.Set("blocksize", strconv.FormatUint(opts.BlockSize, 10))
    	queryVals.Set("filesize", strconv.FormatUint(opts.FileSize, 10))
    
    	respBody, err := client.callWithContext(ctx, peerRESTMethodDriveSpeedTest, queryVals, nil, -1)
    	if err != nil {
    		return madmin.DriveSpeedTestResult{}, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. cmd/storage-rest-server.go

    	origvolume := r.Form.Get(storageRESTOrigVolume)
    
    	fileSizeStr := r.Form.Get(storageRESTLength)
    	fileSize, err := strconv.Atoi(fileSizeStr)
    	if err != nil {
    		s.writeErrorResponse(w, err)
    		return
    	}
    
    	done, body := keepHTTPReqResponseAlive(w, r)
    	done(s.getStorage().CreateFile(r.Context(), origvolume, volume, filePath, int64(fileSize), body))
    }
    
    // DeleteVersionHandler delete updated metadata.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  4. api/go1.6.txt

    pkg debug/elf, type Chdr64 struct, Size uint64
    pkg debug/elf, type Chdr64 struct, Type uint32
    pkg debug/elf, type CompressionType int
    pkg debug/elf, type R_MIPS int
    pkg debug/elf, type SectionHeader struct, FileSize uint64
    pkg encoding/asn1, const ClassApplication = 1
    pkg encoding/asn1, const ClassApplication ideal-int
    pkg encoding/asn1, const ClassContextSpecific = 2
    pkg encoding/asn1, const ClassContextSpecific ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  5. cmd/bucket-stats_gen.go

    		case "PendingSize":
    			z.PendingSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "PendingSize")
    				return
    			}
    		case "FailedSize":
    			z.FailedSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "FailedSize")
    				return
    			}
    		case "PendingCount":
    			z.PendingCount, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "PendingCount")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 06 06:00:45 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. cmd/bucket-replication-utils_gen.go

    			z.ReplicatedSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "ReplicatedSize")
    				return
    			}
    		case "FailedSize":
    			z.FailedSize, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "FailedSize")
    				return
    			}
    		case "FailedCount":
    			z.FailedCount, err = dc.ReadInt64()
    			if err != nil {
    				err = msgp.WrapError(err, "FailedCount")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Mar 21 17:21:35 UTC 2024
    - 61.1K bytes
    - Viewed (0)
  7. cmd/batch-handlers_gen.go

    	if z.Replicate == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.Replicate.Msgsize()
    	}
    	s += 10
    	if z.KeyRotate == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.KeyRotate.Msgsize()
    	}
    	s += 7
    	if z.Expire == nil {
    		s += msgp.NilSize
    	} else {
    		s += z.Expire.Msgsize()
    	}
    	return
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/endtoend_test.go

    			}
    		} else {
    			if errors[fileline] != "" {
    				t.Errorf("unexpected error on %s: %v", fileline, errors[fileline])
    			}
    		}
    		delete(errors, fileline)
    	}
    	var extra []string
    	for key := range errors {
    		extra = append(extra, key)
    	}
    	sort.Strings(extra)
    	for _, fileline := range extra {
    		t.Errorf("unexpected error on %s: %v", fileline, errors[fileline])
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Dec 07 18:42:59 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  9. docs_src/request_files/tutorial001_an_py39.py

    from typing import Annotated
    
    from fastapi import FastAPI, File, UploadFile
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(file: Annotated[bytes, File()]):
        return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(file: UploadFile):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 322 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_files/test_tutorial001.py

        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": 14}
    
    
    def test_post_large_file(tmp_path):
        default_pydantic_max_size = 2**16
        path = tmp_path / "test.txt"
        path.write_bytes(b"x" * (default_pydantic_max_size + 1))
    
        client = TestClient(app)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top