Next.js Discord

Discord Forum

Symfony request files empty after file upload from Nextjs's API route

Unanswered
Cuban Crocodile posted this in #help-forum
Open in Discord
Cuban CrocodileOP

1 Reply

Cuban CrocodileOP
the issue is that I cannot read data properly inside my symfony endpoint as
$request->files 
is empty so i cannot read any data to process it using symfony form-types plus the content-length seems to be descresing with a huge amount since the original file( test with picture ) is 864kb and the content-length received by symfony is 375b ! I wonder if something wrong happened at the time of NextJS api route processing ?