Files
5chan/android/app/src/main/assets/fixtures/fixture_success.html
T
plebeius 7fd3e3fd45 chore(media-upload): remove Postimages provider
Postimages cannot support WebView automation (site blocks automated uploads).
Imgur works reliably. Keep only Catbox and Imgur as supported providers.
2026-02-28 19:13:43 +08:00

21 lines
752 B
HTML

<!DOCTYPE html>
<html>
<head><meta charset="utf-8"><title>Success</title></head>
<body>
<!-- Real file input - DataTransfer injection sets files, change event fires -->
<input type="file" id="uploadFile" />
<!-- Success extractor: imgur looks for a[href*="i.imgur.com"]. Link shown only after input.files change. -->
<span id="result-container" style="display:none">
<a id="result" href="https://i.imgur.com/abc123.png">Link</a>
</span>
<script>
document.getElementById('uploadFile').addEventListener('change', function() {
if (this.files && this.files.length > 0) {
document.getElementById('result-container').style.display = '';
}
});
</script>
<p>Full flow: DataTransfer injection, change fires, success URL extracted.</p>
</body>
</html>