Open grtjn opened 8 years ago
ml-uploader-ng uses mlRest.updateDocument to upload files to MarkLogic, but even though it specifies format=binary, particular files fail. I guess for extensions that are unknown to MarkLogic. Adding this line to updateDocument seemed to fix that:
headers: (options.format === 'binary') ? { 'Content-Type' : 'application/octet-stream' } : {}
It may need some more thought, and it may need to be applied on other places, but this made ml-uploader work for those files..
ml-uploader-ng uses mlRest.updateDocument to upload files to MarkLogic, but even though it specifies format=binary, particular files fail. I guess for extensions that are unknown to MarkLogic. Adding this line to updateDocument seemed to fix that:
It may need some more thought, and it may need to be applied on other places, but this made ml-uploader work for those files..