Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

360
Views
subir imágenes en vuejs a laravel (aws s3)

Estoy tratando de cargar una foto en vuejs y obtenerla en laravel para enviarla a s3 desde aws.

Cuando subo la foto a través de Insomnia, sube correctamente, pero cuando la subo a través de vuejs, regresa vacía.

 const ob = new FormData(); ob.append("picture", this.file); const res = await this.$http.post('/members', ob, { headers: { 'Content-Type': 'multipart/form-data' } });

 public function getUrlS3($foto){ $s3Client = new S3Client([ 'region' => 'us-east-1', 'version' => '2006-03-01', ]); $result = $s3Client->putObject([ 'Bucket' => 'bucket-name', 'Key' => 'file' . '.png', 'ACL' => 'public-read', 'SourceFile' => $foto, 'r' ]); return $result; }

 $aws = new S3Controller(); $file = $request->file('picture'); $rt = $aws->getUrlS3($file);

 Content-Disposition: form-data; name="picture"; filename="chiru.jpeg" Content-Type: image/jpeg

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!