Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

228
Visualizações
VUE(NUXT), upload button:, How it must not refresh when taking picture in IOS webview?

I have a Vue Project that will take photo from Gallery,.. the project is being also used in IOS and Android Webview,. the problem is on the IOS,.. when after taking a picture it will refresh the page. But photo library and other selection are working. Does anyone know how should be solve this?

this is the takephoto in IOS: enter image description here

this is the code:

<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);
          });
      }
    },

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda