Newbie here, student developer.
I’m creating a personal full-stack project and I’ve implemented file.io API. I’m wondering if anyone has used this? If so, is there a way for me to upload a file directly onto my account?
As of now, the user via react app is able to upload their generated pdf to file.io/ but my issue is that this function generates a unique key that only the user can retrieve from the response tab on their console. I need a way to access it from my end.
I tried adding my own file.io user id at the URL endpoint for the fetch but when that resulted in a 404, I attempted adding my id as part of the headers, thereafter. No go.
I know I can implement another API such as sendgrid that can send the generated key from the user’s side directly to my email but I’ve been having issues with that method. I initially tried using sg to submit the generated pdf from user to my email but CORS kept creating roadblocks even if I have CORS (app) on my flask app init file.
If there is a simplified alternative that someone knows how to implement, please let me know.
Buhay Malaya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.