Bonjour, je suis entrain d'essayer d'utiliser le plugin jQuery-File-Upload que j'ai telecharger ici https://github.com/hugodias/FileUpload j'ai suivie le principe d'installation l'icone de addfiles, d'upload et... appraissent quand on clique sur addfiles le fenetre s'ouvre mais rien ne se telecharger.ça peut être du à quoi le mal fonctionnement.
merci

4 réponses


Bonjour,

qu'indique la console javascript ?
Qu'y a t-il au niveau des requêtes xhr dans l'analyse réseau ?

cordialement

Antho

wenz
Auteur

Merci pour ta réponse voici ce que indique le console javascript:

GET http://localhost/chapel/file\_upload [HTTP/1.1 200 OK 254ms]
GET http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js [11756ms]
GET http://localhost/chapel/file\_upload/css/bootstrap.min.css [HTTP/1.1 304 Not Modified 412ms]
GET http://localhost/chapel/file\_upload/css/style.css [HTTP/1.1 304 Not Modified 432ms]
GET http://localhost/chapel/file\_upload/css/file\_upload\_style.css [HTTP/1.1 304 Not Modified 428ms]
GET http://localhost/chapel/file\_upload/css/jquery.fileupload-ui.css [HTTP/1.1 304 Not Modified 425ms]
GET http://localhost/chapel/file\_upload/js/vendor/jquery.ui.widget.js [HTTP/1.1 304 Not Modified 613ms]
GET http://localhost/chapel/file\_upload/js/jquery.iframe-transport.js [HTTP/1.1 304 Not Modified 609ms]
GET http://localhost/chapel/file\_upload/js/jquery.fileupload.js [HTTP/1.1 304 Not Modified 609ms]
GET http://localhost/chapel/file\_upload/js/jquery.fileupload-fp.js [HTTP/1.1 304 Not Modified 185ms]
GET http://localhost/chapel/file\_upload/js/jquery.fileupload-ui.js [HTTP/1.1 304 Not Modified 174ms]
GET http://localhost/chapel/file\_upload/js/locale.js [HTTP/1.1 304 Not Modified 608ms]
GET http://localhost/chapel/file\_upload/js/main.js [HTTP/1.1 304 Not Modified 726ms]
GET https://blueimp.github.com/cdn/css/bootstrap-responsive.min.css [HTTP/1.1 301 Moved Permanently 13639ms]
GET https://blueimp.github.com/Bootstrap-Image-Gallery/css/bootstrap-image-gallery.min.css [HTTP/1.1 301 Moved Permanently 46876ms]
GET https://blueimp.github.com/JavaScript-Templates/tmpl.min.js [HTTP/1.1 301 Moved Permanently 47154ms]
GET https://blueimp.github.com/JavaScript-Load-Image/load-image.min.js [HTTP/1.1 301 Moved Permanently 47442ms]
GET https://blueimp.github.com/JavaScript-Canvas-to-Blob/canvas-to-blob.min.js [HTTP/1.1 301 Moved Permanently 47748ms]
GET https://blueimp.github.com/cdn/js/bootstrap.min.js [23841ms]
GET https://blueimp.github.com/Bootstrap-Image-Gallery/js/bootstrap-image-gallery.min.js [HTTP/1.1 301 Moved Permanently 48021ms]
GET http://blueimp.github.io/cdn/css/bootstrap-responsive.min.css [HTTP/1.1 404 Not Found 614ms]
GET http://blueimp.github.io/Bootstrap-Image-Gallery/css/bootstrap-image-gallery.min.css [HTTP/1.1 200 OK 353ms]
GET http://blueimp.github.io/JavaScript-Templates/tmpl.min.js [HTTP/1.1 404 Not Found 406ms]
GET http://localhost/chapel/file\_upload/img/glyphicons-halflings-white.png [HTTP/1.1 304 Not Modified 140ms]
ReferenceError: jQuery is not defined jquery.ui.widget.js:18
GET http://blueimp.github.io/JavaScript-Load-Image/load-image.min.js [HTTP/1.1 404 Not Found 277ms]
GET http://blueimp.github.io/JavaScript-Canvas-to-Blob/canvas-to-blob.min.js [HTTP/1.1 404 Not Found 364ms]
GET http://blueimp.github.io/Bootstrap-Image-Gallery/js/bootstrap-image-gallery.min.js [HTTP/1.1 200 OK 203ms]
GET https://blueimp.github.com/cdn/js/bootstrap.min.js [HTTP/1.1 301 Moved Permanently 271ms]
GET http://blueimp.github.io/cdn/js/bootstrap.min.js [HTTP/1.1 404 Not Found 274ms]
TypeError: window.blueimp is undefined bootstrap-image-gallery.min.js:1
TypeError: $ is undefined jquery.iframe-transport.js:38
TypeError: $ is undefined jquery.fileupload.js:33
TypeError: $ is undefined jquery.fileupload-fp.js:37
TypeError: $ is undefined jquery.fileupload-ui.js:38
ReferenceError: $ is not defined main.js:15
GET http://www.google-analytics.com/ga.js [HTTP/1.1 304 Not Modified 267ms]

Bonjour.
Peut-être devrais-tu déjà regarder du côté de ses lignes là, étant donné qu'elles ont un rapport avec le plugin jQuery.FileUpload.

ReferenceError: jQuery is not defined jquery.ui.widget.js:18
TypeError: $ is undefined jquery.iframe-transport.js:38
TypeError: $ is undefined jquery.fileupload.js:33
TypeError: $ is undefined jquery.fileupload-fp.js:37
TypeError: $ is undefined jquery.fileupload-ui.js:38
ReferenceError: $ is not defined main.js:15

Bonsoir,

jQuery est-il bien chargé dans la page avant le plugin?

Cordialement