I am currently working on a project that is requiring me to use AngularJS's $http.post
to upload Base64 encoded file contents to a server, where the file contents will be converted and saved to a remote repository.
The file that I am uploading is about 2.31 MB, yet after the server receives the file contents through the $http.post
method, the file contents are only 68 K in size! What happened?
I am pretty sure that, because my file contents are in Base64 format, I am not having an issue with string termination due to embedded nulls, am I?
I am mostly wondering if there is a byte limit to the $http.post
method. I havn't found my answer anywhere else.
Should I chop my file contents up, tell the server that I am starting an upload, do multiple upload chucks to the server, and then tell the server when I am done?