rdeanar / yii2-file-processor

Upload and process files and images for YII2
12 stars 5 forks source link

TypeError: FileAPI.support is undefined #10

Open skeeran opened 8 years ago

skeeran commented 8 years ago

Hallo,

i am using your singleupload with croping function and loading it in a modal window and getting this error: TypeError: FileAPI.support is undefined

When i click on that error line: get this:

var FileAPI = {
            debug: false, media: true, staticPath: '/assets/1ec49467/FileAPI/', 'url' : 'http://www.mydomain.com/fp/base/upload'
        };

but my upload folder is that i have in config is : mydomain.com/upload hope you can help me :D Thank you

bildschirmfoto 2016-11-19 um 08 05 57
rdeanar commented 7 years ago

Can you reproduce this issue on clear setup without any additional jquery plugins \ js code?

I tried to get the same error, but have no results.

It seems that other plugin affects FileAPI, but I don't know how exactly.

skeeran commented 7 years ago

First all of thank you for the effort.

I have installed a new fresh yii2 installation and installed your plugin and, i have not getted it working. i am getting this error:

Invalid Parameter – yii\base\InvalidParamException
Invalid path alias: @deanar/fileProcessor/messages

sorry for asking if you have a clean yii2/and this plugin working installation. can u share the code and will check

skeeran commented 7 years ago

and on my other installation i have checked if there are other plugin getting loaded. here is the list js file that are getting loaded

bildschirmfoto 2016-12-10 um 20 02 51
skeeran commented 7 years ago

i hav removed all other .js from modal the probleme is still there...

This one is not working in Bootstrap Modal

rdeanar commented 7 years ago

@skeeran I have installed clean yii2 from basic template and setup yii2-file-prcessor by instruction from README.MD

Archive with files:

yii2-file-processor_basic_with_clean_yii2.zip

This one is not working in Bootstrap Modal

Are you trying to make upload with crop inside bootstrap modal? It's not good idea, cause it won't work from the box. Bootstrap modals not supports nested\multiple modals at the same time. Yii2-file-processor's crop modal is based on bootstrap modal too.