Skip to Content
0

File Upload maximum file size?

Nov 10, 2017 at 09:02 PM

428

avatar image

Hi Experts,

Kindly suggest some idea to fix this. I'm using fileupload for file attachment. Converting the files into Base64 format and post the file to backend via oData. It allows max file size as 500kb. But my requirement was upto 75mb files. Conversion of base64 response was very slow. Any suggestion to make the Base64 conversion fast or any lib files to convert. Please suggest.

What is the Maximum file size for FileUpload control.

Code:

function(oEvent){

var oFileuploader = this.getView().byId("fileUploader");

var file = jQuery.sap.domById(oFileuploader.getId() + "-fu").files[0];

var base64_marker = 'data:' + file.type + ';base64,';

var reader = new FileReader();

reader.onload = (function(theFile) {

return function(evt){

var binaryString = evt.target.result.indexOf(base64_marker) +base64_marker.length;

var base64 = evt.target.result.substring(binaryString);

console.log("base64 : "+base64);

};

})(file);

reader.readAsDataURL(file);

},

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Arjun Biswas Dec 06, 2017 at 04:25 AM
0

Hi Vinothkumar T,

You can use AJAX to upload files faster to your database. Also, NetWeaver Gateway doesnot restrict any file size for OData, please refer the foll. links for more information :

https://archive.sap.com/discussions/thread/3548399

Regards,

Arjun Biswas

Share
10 |10000 characters needed characters left characters exceeded