feat(upload): фото и файлы отдельными путями на Android
This commit is contained in:
1 parent
b4dedcfea5
commit
ab84dc1629
6 files changed
+128
-6
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user