Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

171
Vistas
obtener la ruta completa de la imagen seleccionada

Estoy tratando de obtener la ruta completa de la imagen, pero no sé cómo hacerlo. Este es mi código jquery::

 $(document).ready(function () { $('#i_image').change(function () { var file = this.files; if (file && file[0]) { ReadImage(file[0]); } }); var ReadImage = function (file) { var reader = new FileReader; var image = new Image; reader.readAsDataURL(file); reader.onload = function (_file) { image.src = _file.target.result; image.onload = function () { var height = this.height; var width = this.width; var type = file.type; $('#i_targetImg').attr('src', _file.target.result); $('#i_imagePrvw').show(); // trying to get full path of the selected image... var fullPath = $('#i_targetImg').attr('src'); $('#i_full_path').text(fullPath); } } }; }); var clearPreview = function () { $('#i_image').val(''); $('#description').text(''); $('#i_imagePrvw').hide(); };

código frontal::

 <div id="i_imagePrvw" class="thumbnail" style="display:none"> <img class="img-responsive" id="i_targetImg" style="display:block; object-fit:fill;height:140px;width:120px;" /> <div class="caption"> <a href="#" onclick="clearPreview()"><i class="glyphicon glyphicon-trash"></i></a> <p id="i_full_path"></p> </div> </div>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda