mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-04-21 23:36:43 +02:00
Dateien nach „web_src/js/features“ hochladen
This commit is contained in:
parent
ac3aa6abcd
commit
22df5e723f
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ export function initDropzone(el) {
|
|||
this.on('success', (file, data) => {
|
||||
file.uuid = data.uuid;
|
||||
const $input = $(`<input id="${data.uuid}" name="files" type="hidden">`).val(data.uuid);
|
||||
const $inputPath = $(`<input type="hidden" name="files_fullpath[${data.uuid}]" value="${file.fullPath || file.name}">`);
|
||||
const $inputPath = $(`<input type="hidden" name="files_fullpath[${data.uuid}]" value="${htmlEscape(file.fullPath || file.name)}">`);
|
||||
$dropzone.find('.files').append($input).append($inputPath);
|
||||
// Create a "Copy Link" element, to conveniently copy the image
|
||||
// or file link as Markdown to the clipboard
|
||||
|
|
Loading…
Add table
Reference in a new issue