Что у меня есть до сих пор: < /p>
Код: Выделить всё
$file = new File();
$file->folder = new RecordRef();
$file->folder->internalId = XXX;
$file->name = 'filename.png';
$file->fileType = MediaType::_PNGIMAGE;
$file->attachFrom = FileAttachFrom::_computer;
$content = base64_encode(file_get_contents($request->file('file')));
// Outputs a base64 string that can be converted back to an image using any base64=>image tool
$file->content = $content;
$request = new AddRequest();
$request->record = $file;
$addResponse = NetSuite::add($request); // SUCCESS
Подробнее здесь: https://stackoverflow.com/questions/755 ... oad-in-php
Мобильная версия