Files
electron/docs/api/structures/upload-file.md
trop[bot] 5605358f99 fix: pass postData to new-window event (#28542)
* fix: pass postData to new-window event

* fix type of postBody

* fix type of UploadFile and UploadRawData to be discriminated unions

* exclude the empty string from additionalFeatures

* add a test

Co-authored-by: Jeremy Rose <jeremya@chromium.org>
Co-authored-by: Jeremy Rose <nornagon@nornagon.net>
2021-04-07 09:59:34 +09:00

313 B

UploadFile Object

  • type 'file' - file.
  • filePath String - Path of file to be uploaded.
  • offset Integer - Defaults to 0.
  • length Integer - Number of bytes to read from offset. Defaults to 0.
  • modificationTime Double - Last Modification time in number of seconds since the UNIX epoch.