Skip to content

Commit

Permalink
upload fix
Browse files Browse the repository at this point in the history
  • Loading branch information
delchev committed Oct 17, 2016
1 parent faff286 commit fd6bafc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core_api/ScriptingServices/net/http/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
var streams = require("io/streams");

exports.parseRequest = function(lazy) {
if (lazy === undefined) {
lazy = true;
}
var files = [];
if($.getUploadUtils().isMultipartContent($.getRequest())) {
var fileItems = $.getUploadUtils(). parseRequest($.getRequest());
Expand All @@ -35,7 +38,7 @@ function createFileEntity(fileItem, lazy) {
var file = new HttpFileEntry(fileItem, lazy);
file.name = fileItem.getName();

if (lazy) {
if (lazy === true) {
file.internalStream = fileItem.getInputStream();
file.data = null;
} else {
Expand Down

0 comments on commit fd6bafc

Please sign in to comment.