Modules

filter

 

Objects/Functions

module (N/file)

SuiteScript 2.0

file.load(options)

{file}.load({id: {number | string*}})

N/file Module
file.load()
Method Description: Loads an existing file from the NetSuite File Cabinet. The file size limit for this method is 2GB.
Returns: file.File
Supported Script Types: Server-side scripts For more information, see SuiteScript 2.0 Script Types.
Governance: 10 units
Module: N/file Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=file.load(options)

Example:

// Code Example 1
// Add additional code
//...
var fileObj = file.load({
id: 'Images/myImageFile.jpg'
});
fileObj.description = 'my test file';
var fileId = fileObj.save();
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4226574300.html