feat(upload): фото и файлы отдельными путями на Android

This commit is contained in:
Panfilov Konstantin committed 2026-10-19 12:20:22 +03:00
1 parent 19547d1797
commit 21f8fbb6a4
6 files changed
+128 -6

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ if ($form === false) {
exit(1);
}
preg_match_all('/<div class="dropzone-form-format-item">([^<]+)<\\/div>/', $form, $formatMatches);
preg_match_all('/<div class="dropzone-form-format-item"[^>]*>([^<]+)<\\/div>/', $form, $formatMatches);
$visibleFormats = ['JPG', 'PNG', 'HEIC', 'WebP', 'GIF', 'PDF', '+много'];
if ($formatMatches[1] !== $visibleFormats) {
fwrite(STDERR, "FAIL: Preland не показывает утверждённый компактный список форматов в нужном порядке.\n");