mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-01-23 00:06:08 +01:00
654bc94d44
* Fix input files being overwritten by newly uploaded files - Fix a bug that caused existing selected/uploaded files to be overwritten when a new input file is uploaded through input element. - Add source property to change event to differentiate between uploaded files using input element and drag/drop uploads to avoid processing drag/drop files more than once, thus avoiding file duplication (file duplication resulting from copying drop/drop files to input files on each 'change' event). * Dispatch and use file-input-change instead of change event for merging - Dispatch "file-input-change" event after each "change" event in file upload, to notify other functions/components relying on the files provided by the \<input\> element. - Use "file-input-change" instead of "change" event to display the latest version of uploaded files. # FAQ: - Why use "file-input-change" instead of "change" in merge.js? = "change" event is automatically triggered when a file is uploaded through \<input\> element which would replace all the existing selected/uploaded files including the drag/drop files. ## Example: Let's say that the user wants to upload/select the x.pdf, y.pdf and z.pdf all together: - user selects "x.pdf" -> file selected successfully. = selected files: x.pdf - user drags and drops "y.pdf" -> file dropped successfully = selected files: x.pdf, y.pdf - user selects again using \<input\> "z.pdf" -> file selected succesfully overwriting selected files. = selected files: z.pdf |
||
---|---|---|
.. | ||
static | ||
templates | ||
application.properties | ||
banner.txt | ||
logback.xml | ||
messages_ar_AR.properties | ||
messages_az_AZ.properties | ||
messages_bg_BG.properties | ||
messages_ca_CA.properties | ||
messages_cs_CZ.properties | ||
messages_da_DK.properties | ||
messages_de_DE.properties | ||
messages_el_GR.properties | ||
messages_en_GB.properties | ||
messages_en_US.properties | ||
messages_es_ES.properties | ||
messages_eu_ES.properties | ||
messages_fr_FR.properties | ||
messages_ga_IE.properties | ||
messages_hi_IN.properties | ||
messages_hr_HR.properties | ||
messages_hu_HU.properties | ||
messages_id_ID.properties | ||
messages_it_IT.properties | ||
messages_ja_JP.properties | ||
messages_ko_KR.properties | ||
messages_nl_NL.properties | ||
messages_no_NB.properties | ||
messages_pl_PL.properties | ||
messages_pt_BR.properties | ||
messages_pt_PT.properties | ||
messages_ro_RO.properties | ||
messages_ru_RU.properties | ||
messages_sk_SK.properties | ||
messages_sr_LATN_RS.properties | ||
messages_sv_SE.properties | ||
messages_th_TH.properties | ||
messages_tr_TR.properties | ||
messages_uk_UA.properties | ||
messages_vi_VN.properties | ||
messages_zh_CN.properties | ||
messages_zh_TW.properties | ||
messages.properties | ||
settings.yml.template |