Skip to main content
Topic: Upload image on https does not work  (Read 1603 times) previous topic - next topic

Upload image on https does not work

please help me fix this !!!


 

Re: Upload image on https does not work

Reply #1
@muhdkhokhar‍ this seems to be an issue with your server, please make sure there is no configuration on your server blocking the upload of files. Sometimes when using apps like mod_sec on your server and it is not properly configured, you get such errors.

Re: Upload image on https does not work

Reply #2
@muhdkhokhar‍ this seems to be an issue with your server, please make sure there is no configuration on your server blocking the upload of files. Sometimes when using apps like mod_sec on your server and it is not properly configured, you get such errors.

But why only happens when I use https

if I access non https with ip it works

Re: Upload image on https does not work

Reply #3
It looks like dropzonejs issue when using https

Mixed Content: The page at 'https://www.brandhouseinkportal.com/freelancer_portal/mock_up_request/edit/1' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.brandhouseinkportal.com/freelancer_portal/filehelper/uploadfile/'. This request has been blocked; the content must be served over HTTPS.

please tell me how i fix this ?

Re: Upload image on https does not work

Reply #4
@muhdkhokhar‍ Please make sure the SITE_ADDR provided in your config.php is the default generated by phprad, if you edited it please make sure it contains https:// instead of http://, and also make sure if you made a custom edit on your project by access resource like image, CSS file, js files, etc. using static links, please also make sure you correct it too, thanks.

Re: Upload image on https does not work

Reply #5
Thanks a lot
I found out the issue

I am using the CloudFlare as https

Your configuration does not pick up as HTTPS

I manaually fixed the URL and works a treat

love your app man amazing