YI no longer use flare, but you can get console logs from iPhone using Mac Safari > Develop menu.
Quick google result: https://medium.com//debugging-your-iphone-mobile-web-app-using-safari-development-tools-71240657c487
Upload an avatar successful on iOS
No response when I click the avatar upload button
iOS Safari & Chrome cannot upload an avatar too. The difference I tested between "iOS Safari" and "MS Edge#1125" is "iOS Safari" cannot popup the file selection box while "MS Edge" cannot upload the selection image.
I inspected the profile page on linux by iso-webkit-debug-proxy & mozilla/valence. No errors appear in WebIDE console.
Avatar can be uploaded successful if I unhide the INPUT element and click it manually.
Change '<input type="file">'
to '<input type="file" style="cursor: pointer">'
in AvatarEditor.js
and rebuild the forum-*.js
in assets
folder is not working.
I also tried the following code and these worked as expected on iOS (file selection box can popup when I click the "button" element) :
<script src="./jquery-2.1.4.js"></script>
<script>
$(function() {
console.log("Ready!");
$('<button id="1" style="width: 100px; height: 20px; float: left;"></button>').appendTo("body");
$( "#1" ).click(function(){
console.log("Click");
$('<input type="file">').appendTo("body").hide().click();
});
})
</script>
该提问来源于开源项目:flarum/core