Hi again,
The project I've mentioned in two other posts continues. I've changed it a bit so that instead of generating a PDF in the app and then attaching it to a Sendgrid email (which I never got working) I've opted instead to generate the PDF file, upload it to the files DB and then post a link of it in the email.
So far I've gotten this to work using a file input interface within the Appery web environment, but since I can't force the PDF I'm generating into the that dom element, I'm trying to pass it along to the service using javascript. When I do this however, I get an Internal Server Error in the jqXHR response text (seen below)
{"code":"DBFM000", "description":"This wasn't supposed to happen but an error occurred. Please try again. If the error persists please let us know on the http://appery.io/forum or email us: a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a"}
Here's the call that gives me the error
uploadMultipleFilesHelper(email_file_upload, pdfPath1);
Where "email_file_upload" is the name of the service set up by using the Upload File tutorial (http://docs.appery.io/tutorials/uploa...) and "pdfPath1" is the PDF converted to binary seen below:
"data:application/pdf; base64,JVBerUHFDJhdjk...and so on"
It still isn't clear to me if the way I'm sending the file along is correct (does it need to be put in a Blob or something?) but the base64 is the only time the app takes a second to try and process the task before throwing the error. Any idea what might be causing this error, or is there a better way of uploading the file to the server?
Thanks