![]() First, there’s a constructor, similar to Blob: new File( fileParts, fileName, options) fileParts is an array of Blob/BufferSource/String values. ![]() This package is intended for transmitting smaller pieces of data and is not suitable for e.g. A File object inherits from Blob and is extended with filesystem-related capabilities. Please note that although any file can be converted into a LocalFileData object, the entire file is loaded into memory when serializing (which will be required as a general rule when sending using Electron's ipcRenderer or as an http request).įiles of >1GB will therefore cause the process to crash if serialization is required. ![]() Available options are as follows: type A string representing the MIME type of the content that will be put into the file. options Optional An options object containing optional attributes for the file.
0 Comments
Leave a Reply. |