hello,
New to grocery crud , I just had the same issu ...
Digging through the jquery.fileupload.js file ( assets / grocery_crud / js / jquery_plugins / jquery.fileupload.js ) I found the answer ...
line : 42: "
// The drop target collection , by default the the full document.
// Set to null or empty collection to disable year drag & drop support:
dropzone : $ (document)...,
you just have to change this option in the file
/assets/grocery_crud/js/jquery_plugins/config/jquery.fileupload.config.js
line 30 you ill find:
$ (this) .fileupload ({
dataType : ' json '
url: uploader_url ,
cache: false,
acceptFileTypes : file_upload_info.accepted_file_types ,
beforeSend : function ( ) {...
insert : dropZone : $(this)
=>giving that :
$ (this) .fileupload ({
dataType : ' json '
url: uploader_url ,
cache: false,
acceptFileTypes : file_upload_info.accepted_file_types ,
dropZone : $(this), // <--add this
beforeSend : function ( ) {...
save it ... and voila
enjoy ...
En Français...
Bonjour,
Nouvel utilisateur de grocery crud, je viens juste d'avoir le même probleme...
C'est en fouillant dans le fichier JQUERY fileupload (assets/grocery_crud/js/jquery_plugins/jquery.fileupload.js) que j'ai trouvé la reponse...
ligne : 42 :"
// The drop target collection, by the default the complete document.
// Set to null or an empty collection to disable drag & drop support:
dropZone: $(document),..."
il suffit simplement de modifier cette option dans le fichier
jquery.fileupload.config.js
recherchez ligne 30 :
$(this).fileupload({
dataType: 'json',
url: uploader_url,
cache: false,
acceptFileTypes: file_upload_info.accepted_file_types,
beforeSend: function(){...
inserer : dropZone:$(this),
ce qui donne:
$(this).fileupload({
dataType: 'json',
url: uploader_url,
cache: false,
acceptFileTypes: file_upload_info.accepted_file_types,
dropZone:$(this),
beforeSend: function(){...
enregistrez ça... et le tour est joué
enjoy...