{#
Upload form. Two modes:
- default: HTMX multipart POST → /files. Drag&drop into the dashed area.
- presign: legacy flow driven by flask.s3viewer.core.js, which still owns
multi-file presigned PUTs to S3 (deferred to v1.1 for a slim rewrite).
The presign branch preserves the old DOM IDs that core.js looks up.
#}
{%- set current_prefix = current_prefix if current_prefix is defined else request.args.get('prefix', '') -%}
{%- set current_search = current_search if current_search is defined else request.args.get('search', '') -%}
{% if FS3V_UPLOAD_TYPE == 'presign' %}
Replace existing files?
Some selected files already exist in this folder.
Replace existing files?
Some selected files already exist in this folder.