从未找到过ajax请求的资产

I have an ajax request which needs to access to some images. I tried a lot of things, but the images are never found.

the ajax request and the images are there :

enter image description here

The code is :

$chemin =   '../../public/photos/pseudo_produit/';  

        if (file_exists($chemin.$pseudo_produit->nom_photo_vignette)){
            exit("exists");             

        } else {
            exit('does not exists');                

        }

As I use laravel 4.2, I also tried with public_path() and app_path() functions. Without more success.

What are my errors?

This $chemin.$pseudo_produit->nom_photo_vignette won't work you can't access a varibale like that.

You can try something like this :

$nom_photo_vignette = 'vignette1';

$chemin = public_path() . 'photos/pseudo_produit/' . $nom_photo_vignette;