0
プロジェクトにファイルをアップロードする必要があります。しかし、ダイアログボックスをキャンセルすると、以前にアップロードされたファイルは消えています。ダイアログボックスをキャンセルしても最初に選択したファイルを維持する方法はありますか?ここでgrails - gspでファイルをアップロードする(キャンセルをクリックすると消えます)
は私のコードは、残念ながら、これは不可能です
<div class="input-field" id="uploadAuditReport">
<label class="active">Upload Audit Report *</label>
<input type="file" id="reportFileData" name="reportFileData" required-error="Please upload a file" class="m-b-10 card-panel" style="bottom-border: dotted 1px" pattern="^.*(xls|xlsx|doc|pdf|docx|ods|jpg|jpeg|png|XLS|XLSX|DOC|PDF|DOCX|ODS|JPG|JPEG|PNG)$" pattern-error="File must be in xls, xlsx, doc, pdf, docx, ods, jpg/ jpeg, and png format" required="" filesize="30000000" filesize-error="File must not exceed a file size of 30 MB." >
</div>