0

i want to upload a zip file from a client to my server. On my client side i have adapt the code from this site. In my express server i notice that my request is

req.files:  { file:
  { fieldName: 'file',
   originalFilename: 'myZIP.zip',
   path: '/tmp/myPath',
   headers:
     { .....},
    size: 11757,
    name: 'myZIP.zip',
    type: 'application/zip' } }

Is there any way to upload my file without give the path of the file /tmp/... ? Or this is the only way that uploads works in general?

The_elevator
  • 75
  • 1
  • 8

0 Answers0