flutter_dropzone icon indicating copy to clipboard operation
flutter_dropzone copied to clipboard

dropzone view: targetplatform.windows is not supported

Open Asad0473 opened this issue 3 years ago • 75 comments

I am using this library in my web app not desktop app but I am still facing this issue . its working fine in debug mode but when we go to live server or you say release mode i am facing this issue

Asad0473 avatar Jan 10 '23 06:01 Asad0473

Could you come up with a reproducible repo?

deakjahn avatar Jan 10 '23 11:01 deakjahn

what do you mean by reproducible repo?

Asad0473 avatar Jan 10 '23 11:01 Asad0473

A very small project, a minimal one, that shows the problem and allows me to reproduce it. Because, as things stand now, I can't make that error appear myself, so I have no idea what leads to it and how I can fix it.

deakjahn avatar Jan 10 '23 12:01 deakjahn

@deakjahn , here is the sample project link. please download it and make it live on server. because we are getting target platform error on our live server. in local it's working fine. our app is developed for Android, IOS, and web. but this we allowing this feature is only for web . please make it supported for Window and MacOs as well. I think it might be creating problem because this library is not supporting Windows and MacOs.

https://drive.google.com/file/d/1644K50Sx_-imnKUYcEyqlJTj58xHXkCx/view?usp=sharing

Asad0473 avatar Jan 11 '23 06:01 Asad0473

@deakjahn We are working on a social media website called Werfie (https://werfie.com) which is similar to Twitter. We would love to dropzone developed by you in werfie. You will get credit for it as well in our website Credits section. I request you to please update us with the issue that we are facing while using dropzone in our website. We are expecting to launch the new version of werfie.com on Monday next week and this issue is holding the release. I request your immediate attention on this. waiting for your response...

Asad0473 avatar Jan 12 '23 06:01 Asad0473

@Asad0473 Then please, help me what to look for :-) I downloaded it, put it into Android Studio and built for the web. I uploaded it to my test site, temporarily at http://teszt.tramontana-teszt.hu/#/. When I start it, it starts, when I drag an image into it, it appears. I'm testing in Vivaldi, a Chrome based browser but I also tried Edge to be sure.

deakjahn avatar Jan 12 '23 19:01 deakjahn

Its not working on my website

Asad0473 avatar Jan 12 '23 19:01 Asad0473

But does my test at the link above work for you, in your browser?

deakjahn avatar Jan 12 '23 19:01 deakjahn

sorry its working fine in my browser

Asad0473 avatar Jan 12 '23 19:01 Asad0473

but its not work for https://werfie.com/ ..

Asad0473 avatar Jan 12 '23 19:01 Asad0473

Maybe its not working for secure website

Asad0473 avatar Jan 12 '23 19:01 Asad0473

I don't think so but I can add a cert to my test in a few minutes. In the meantime, could you do the same as I did? I built your sample simply with:

flutter build web

or

flutter build web --web-renderer canvaskit

and upload the contents of build/web to anywhere on your site into a new folder that I can access from outside?

deakjahn avatar Jan 12 '23 19:01 deakjahn

It's HTTPS now: https://teszt.tramontana-teszt.hu/#/

deakjahn avatar Jan 12 '23 19:01 deakjahn

Ok i test it

Asad0473 avatar Jan 12 '23 19:01 Asad0473

I don't really know where you plan to use it on the site. In the dialog to send a post?

deakjahn avatar Jan 12 '23 19:01 deakjahn

yes in dialog to post

Asad0473 avatar Jan 12 '23 20:01 Asad0473

Right now I get a window showing the image and the browser has CORS error messages. But nothing about Windows...

deakjahn avatar Jan 12 '23 20:01 deakjahn

https://staging.werfie.com/ use this link and you see the error in post dialog

Asad0473 avatar Jan 12 '23 20:01 Asad0473

I tried with the real one, with a disposable e-mail, but didn't send any message. :-) I'll try to register the same here.

deakjahn avatar Jan 12 '23 20:01 deakjahn

tttt see this image @deakjahn

Asad0473 avatar Jan 12 '23 20:01 Asad0473