Open dalyaidan1 opened 3 weeks ago
This is an expected limitation of the V8 engine. Large files should be uploaded in a different way, like streaming or multi-part. Not sure what the file adapter already supports. A "workaround" could be to break the base64 conversion up into parts instead of converting the whole string at once. But even then a var would hold the entire file in memory, which may again run into limitations. Maybe the conversion can be made unnecessary if req.body is already a buffer and we could simply const file = new Parse.File(filename, { buffer: fileBuffer }, contentType);
.
New Issue Checklist
Issue Description
Files larger than 512MB are not able to be uploaded to Parse Server as Parse.Files.
The files are converted to stings, which is more than Node can handle.
Steps to reproduce
Upload a file bigger than 512MB.
Actual Outcome
This appears to come from this line: https://github.com/parse-community/parse-server/blob/6.3.1/src/Routers/FilesRouter.js#L175
Expected Outcome
The Parse.File to be created.
Environment
Server
Database
Client
Logs