Hello, can someone help to understand why images do not get uploaded but instead showing upload processing? I tried disabling an optimization but it did not help. I am on latest discourse version self hosted, file is PNG 1Mb on air theme. Thanks
Hello, can you look at the browser’s console and see if you get any errors when it happens?
Very strange stuff, it worked with a different browser Safari, then I switched back to Brave that was giving a problem and it worked now also. All I did it was I restarted my computer.
Although checking Brave console here what is shows below. I am not a programmer so not sure how to make changes to get rid of these warnings. Any help would be appreciated. Thanks!
***45Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure font '<URL>'. This request has been blocked; the content must be served over HTTPS.***
***app.js:239 ℹ️ Discourse v3.5.0.beta2-dev — https://github.com/discourse/discourse/commits/18c8a8ffca — Ember v5.12.0***
***13deprecated.js:61 Deprecation notice: PluginOutlet arguments should now be passed using `@outletArgs=` instead of `@args=` (outlet: category-box-below-each-category) [deprecation id: discourse.plugin-outlet-args]***
***a @ deprecated.js:61***
***site.js:130 ✅ Using the new 'glimmer' topic list***
***hamforum.org/:1 Mixed Content: The page at 'https://hamforum.org/' was loaded over HTTPS, but requested an insecure element 'http://hamforum.org/uploads/default/original/1X/011bca162039029c26490fea3769b9d0fde6dd11.webp'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html***
***hamforum.org/:1 Mixed Content: The page at 'https://hamforum.org/' was loaded over HTTPS, but requested an insecure favicon 'http://hamforum.org/uploads/default/optimized/1X/d6407243bedd7a8b0323cffb345cb60750c7f8b8_2_32x32.png'. This request has been blocked; the content must be served over HTTPS.***
***hamforum.org/:1 Mixed Content: The page at 'https://hamforum.org/' was loaded over HTTPS, but requested an insecure element 'http://hamforum.org/uploads/default/optimized/1X/d5f25e2f27014348ef24a5b9e927a7641c1c5dea_2_512x512.webp'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html***
***4:1 Mixed Content: The page at 'https://hamforum.org/c/general/4' was loaded over HTTPS, but requested an insecure favicon 'http://hamforum.org/uploads/default/optimized/1X/d6407243bedd7a8b0323cffb345cb60750c7f8b8_2_32x32.png'. This request has been blocked; the content must be served over HTTPS.***
How did you install Discourse? This happens when you didn’t setup HTTPS properly.
I had a linux specialist helped me installing. He might have missed something though. If you could steer me to the right direction I am sure he will make things right asap.
Looks like the specialist failed to follow the standard install guide.
You need to set force_https to true. It can be done by adding an ENV var for DISCOURSE_FORCE_HTTPS: true in your app.yml and rebuilding.
OK, great. Will relay your advice to the specialist and see if we can fix it.
You guys are awesome. Much appreciated!
갑자기 모바일 기기로 업로드할 때만, 데스크톱에서는 아닌데 이 오류가 발생하고 있습니다. 콘솔에 로그인하여 "RAILS C"와 “sitesetting.force_https = true” 명령어를 실행해 보았지만 “command not found” 오류가 발생했습니다.
포럼 관리자 설정에서 “force https” 옵션을 찾을 수 없습니다.
위 “ENV Var” 단계에 대한 절차를 알려주실 수 있을까요? 시간을 내어 주셔서 감사합니다.
대신 app.yml 파일에서 설정을 변경해 보세요.
제안해 주셔서 감사합니다. 해당 항목을 추가하고 파일을 저장한 뒤, 다음 위치에서 설명하는 재빌드 과정을 따랐습니다:
브라우저 캐시를 비운 후 다시 시도해 보니, 모바일 브라우저에서 “업로드 처리 중” 단계를 통과할 수 있게 되었습니다. 감사합니다!
해당 전문가는 표준 설치를 수행했습니다. 컨테이너 내부에서 다음을 확인했습니다:
# set|grep FORCE_HTTP
DISCOURSE_FORCE_HTTPS=true
그리고 동작은 다음과 같습니다: 모바일에서 업로드가 작동하지 않지만, 모바일에서 데스크톱 보기로 전환하면 업로드가 정상 작동합니다:
@noid --어떤 모바일 브라우저와 운영 체제를 사용 중이신가요?
