• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

165
Views
VUE (NUXT), botón de carga: ¿Cómo no se debe actualizar al tomar una foto en la vista web de IOS?

Tengo un Proyecto Vue que tomará una foto de la Galería, ... el proyecto también se está utilizando en IOS y Android Webview. el problema está en el IOS, cuando después de tomar una foto, actualizará la página. Pero la biblioteca de fotos y otra selección están funcionando. Alguien sabe como se debe solucionar esto?

esta es la foto en IOS: ingrese la descripción de la imagen aquí

este es el codigo:

 <div class="style_value text-left"> <input ref="ImageFileHiddenInput" accept="image/x-png,image/gif,image/jpeg" @change="onFileChange" type="file" name="image_file" style="display: none" /> <button @click="$refs.ImageFileHiddenInput.click()" class="m-1" type="button" size="mini"><i class="fas fa-cloud-upload-alt"></i> Upload</button> </div>
 onFileChange(e) { const file = e.target.files[0]; this.imageFile = file; this.uploadImage(); }, uploadImage() { if (this.imageFile) { var bodyFormData = new FormData(); bodyFormData.append("UploadFile", this.imageFile); this.$axios .post(`/upload-photo-file-url`, bodyFormData) .then((res) => { console.log('success') }) .catch((err) => { console.error(err); }); } },
almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error