Explanation of my process:
When a user fills in a form of mine and uploads it, it doesn't get uploaded to a database. It gets uploaded to a web based third party app that contains all our client information. This app however has a rate limit as a security, and since i can't let the customer who fills out the form know that, i need to temporarily save the data to my database.
I already have this up and running like i want it. There is a problem though.
Problem:
If the form contains a file, the file won't get uploaded to the database, because laravel does not allow serialization of UploadFile objects. Which is fair since all that would do is upload the directory of a temporary file to the database, so that wouldn't work.
Either way, the API expects the file body to be multipart/form-data so i wouldn't be able to get that from the database.
The solution?
Is it be possible to save the file locally and redo the request somehow without manually filling out the form again?
I realize this request is a bit odd, but I'm sure the idea of saving a request temporarily in a database for later use is very good knowledge.