Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mecjos's avatar

formData file Append Problem. Big size files doesn'T append

Hi.. I have a problem with uploading files. I'm trying to send form data as following codes..

let formData = new FormData()
if (this.cad_files.length > 0) {
            console.log(this.cad_files)
            this.cad_files.forEach( function (file) {
              if (!file.id) {
                console.log(file)
                formData.append('cadNames[]', file);
              }
            })
          }

when I select a small size file it's ok but with big size files it doesn't append file to form data. Is there any size limit on formData.append ??

0 likes
3 replies
ftiersch's avatar

Is it not appended to the FormData or doesn't it reach the server? Because PHP for example has a max file size for uploads that you can change in the php.ini

mecjos's avatar

not appended to formData. I checked it. it's on frontside.

mecjos's avatar

is there anyone has an answer?

Please or to participate in this conversation.