Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dropzone.js error
#1
Hi,

the dropzone widget for upload image inside products is heratic and most of times does not load :

test :
- download in and latest corebos code from github (no changes in code, blank DB with demo data)
- run and apply all cbupdaters

when i go to a product, click or drag a file on the widget, no action (popup window for selecting the file does not appear)

Rgds
Reply
#2
Try this (just to confirm): once you load the detail view of the product reload the page and try the widget again.

I have detected that the first load of the page does not work most times but reloading works always. I think it has something to do with the old jquery library we are using and I am trying to organize a big change to be able to prove my theory
Joe
TSolucio
Reply
#3
as i said : it's heratic, sometimes it works , sometime no, i have tested with different computers (windows , Mac, ) and different browsers
you have to reload the page twice or 3 times to works

looking at the chrome console log, the dropzone.js is loaded but not working
Reply
#4
Hi,

i have "resolved" the issue by dropping dropzone and using :

https://github.com/blueimp/jQuery-File-Upload

code is copied from :

http://tutorialzine.com/2013/05/mini-ajax-file-upload-form/

it is better stable and load on first call

Rgds
Reply
#5
Wow!! Sounds nice.

Can you create a pull request or share the code so I can change it in the project?
Joe
TSolucio
Reply
#6
here is it :


unzip the fileupload folder inside include/jquery
replace dropzone.tpl in Smatrty/templates/modules/Products


Attached Files
.zip   fileupload.zip (Size: 115.19 KB / Downloads: 4)
Reply
#7
We have released a version 5.8 which has eliminated prototype. We are only using jquery now and the dropzone plugin seems to be working correctly on this new version.
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)