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

635
Vistas
In Vue js Image can't find from Node Js server

I have run my Nodejs server in 3000 port and Vuejs 8080 port. Now I can get data from "posts" collection via API but when a want to access image it can't find the image.

My Error is :GET http://localhost:3000/images/1656300140014picture.PNG 404 (Not Found)

               <tbody>
                  <tr v-for="(item, index) in getAllPost" :key="item._id">
                    <td>{{ index + 1 }}</td>
                    <td>
                      
                      <img
                        :src="
                          'http://localhost:3000/images/' + item.postImage
                        "
                        style="width: 50px"
                      />

                    </td>
                    <td v-if="item.author">{{ item.author.userName }}</td>
                    <td v-if="item.author == null">N/A</td>
                    <td>{{ item.title }}</td>

                    <td class="text-right">
                      <router-link
                        :to="{ name: 'mainLayout' }"
                        class="btn btn-primary mr-2"
                      >
                        <i class="fas fa-eye"></i>
                      </router-link>
                      <button class="btn btn-primary mr-2">
                        <i class="fas fa-edit"></i>
                      </button>
                      <button class="btn btn-danger mr-2">
                        <i class="fas fa-trash"></i>
                      </button>
                    </td>
                  </tr>
                </tbody>

enter image description here

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