Oracle Magazine, July/August 2019
ORACLE MAGAZINE JULY AUGUST 2019 63 Database Developer OPEN SOURCE if fileName res status 400 json error The file name must be passed to the via x file name header return req on data chunk contentBuffer push chunk totalBytesInBuffer chunk length if totalBytesInBuffer maxFileSize req pause res header Connection close res status 413 json error The file size exceeded the limit of maxFileSize bytes req connection destroy req on end async function contentBuffer Buffer concat contentBuffer totalBytesInBuffer try const fileId await files create fileName contentType contentBuffer
You must have JavaScript enabled to view digital editions.