[Vuejs]-Why are my temporary files being deleted on one PHP page but not another?

0👍

It took some hard digging into my Javascript before I realized that with WebPageA I was using the same FormData object on the JS side to send as the body of the POST via fetch. Meaning the datafile object was being passed along both times I POSTed to my backend. However on WebPageB I actually created a new FormData object within my second POST module and was not including the data file object in its body. Therefore it was never receiving another file. An embarrassing head slapper for sure, but lesson learned.

Leave a comment