PageSourceSearch

https://whatsapp-flutter.github.io/assets/js/15ff2821.5a1e6878.js

js whatsapp-flutter.github.io collected 2026-10-03 10:12:53 UTC 4,117 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwhatsapp_flutter=self.webpackChunkwhatsapp_flutter||[]).push([[9224],{2809:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>o,contentTitle:()=>l,default:()=>h,frontMatter:()=>i,metadata:()=>r,toc:()=>a});const r=JSON.parse('{"id":"methods/resumable/create-resumable-upload-session","title":"\u270f\ufe0f Create Resumable","description":"Create a new session for resumable upload","source":"@site/versioned_docs/version-4.0.0/methods/resumable/create-resumable-upload-session.md","sourceDirName":"methods/resumable","slug":"/methods/resumable/create-resumable-upload-session","permalink":"/docs/4.0.0/methods/resumable/create-resumable-upload-session","draft":false,"unlisted":false,"editUrl":"https://github.com/whatsapp-flutter/whatsapp-flutter.github.io/tree/main/versioned_docs/version-4.0.0/methods/resumable/create-resumable-upload-session.md","tags":[],"version":"4.0.0","sidebarPosition":1,"frontMatter":{"title":"\u270f\ufe0f Create Resumable","sidebar_position":1},"sidebar":"tutorialSidebar","previous":{"title":"\ud83e\udd1d Account Migration","permalink":"/docs/4.0.0/methods/business/account-migration"},"next":{"title":"\u2b06\ufe0f Upload File","permalink":"/docs/4.0.0/methods/resumable/upload-resumable-file"}}');var n=t(4848),d=t(8453);const i={title:"\u270f\ufe0f Create Resumable",sidebar_position:1},l=void 0,o={},a=[{value:"Resumable Return Methods",id:"resumable-return-methods",level:2}];function c(e){const s={a:"a",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.p,{children:"Create a new session for resumable upload"}),"\n",(0,n.jsx)(s.pre,{children:(0,n.jsx)(s.code,{className:"language-dart",children:"await whatsapp.createResumableUploadSession(\n    fileLength: 210915,\n    fileType: 'image/png',\n    fileName: 'sample.png',\n);\n"})}),"\n",(0,n.jsxs)(s.table,{children:[(0,n.jsx)(s.thead,{children:(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.th,{children:"param"}),(0,n.jsx)(s.th,{children:"type"}),(0,n.jsx)(s.th,{children:"required"}),(0,n.jsx)(s.th,{children:"description"})]})}),(0,n.jsxs)(s.tbody,{children:[(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"fileLength"})}),(0,n.jsx)(s.td,{children:"int"}),(0,n.jsx)(s.td,{children:"yes"}),(0,n.jsx)(s.td,{children:"Exact file size in bytes"})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"fileType"})}),(0,n.jsx)(s.td,{children:"String"}),(0,n.jsx)(s.td,{children:"yes"}),(0,n.jsx)(s.td,{children:"Type of file that you are going to upload"})]}),(0,n.jsxs)(s.tr,{children:[(0,n.jsx)(s.td,{children:(0,n.jsx)(s.code,{children:"fileName"})}),(0,n.jsx)(s.td,{children:"String"}),(0,n.jsx)(s.td,{children:"no"}),(0,n.jsx)(s.td,{children:"Name of the file"})]})]})]}),"\n",(0,n.jsx)(s.h2,{id:"resumable-return-methods",children:"Resumable Return Methods"}),"\n",(0,n.jsxs)(s.ul,{children:["\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/docs/return-methods#resumable-methods",children:(0,n.jsx)(s.code,{children:"isSuccess()"})})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/docs/return-methods#resumable-methods",children:(0,n.jsx)(s.code,{children:"getId()"})})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/docs/return-methods#resumable-methods",children:(0,n.jsx)(s.code,{children:"getH()"})})}),"\n",(0,n.jsx)(s.li,{children:(0,n.jsx)(s.a,{href:"/docs/return-methods#resumable-methods",children:(0,n.jsx)(s.code,{children:"getFileOffset"})})}),"\n"]})]})}function h(e={}){const{wrapper:s}={...(0,d.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},8453:(e,s,t)=>{t.d(s,{R:()=>i,x:()=>l});var r=t(6540);const n={},d=r.createContext(n);function i(e){const s=r.useContext(d);return r.useMemo(function(){return"function"==typeof e?e(s):{...s,...e}},[s,e])}function l(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(d.Provider,{value:s},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.