プロジェクト

全般

プロフィール

Vote #79826

完了

Drag and drop file upload to file type custom field

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
152
issue_org_id:
30776
author_id:
26413
assigned_to_id:
332
comments:
11
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Drag and drop file to "file custom field" is not behaving as expected. File is attached as regular file insted to Custom field.
Demonstration is attached at "file_dragNdrop.gif".


journals

--------------------------------------------------------------------------------
Is this defect planned to be fixed soon?
--------------------------------------------------------------------------------
I have attached a patch to fix this issue.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.2.0.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Mizuki ISHIKAWA wrote:
> I have attached a patch to fix this issue.

Thank you for posting the patch but I found a strange behavior when trying to upload files.

An error message @:error_attachments_too_many@ is displayed when you attempt to drop two or more files. It is OK. However, you will see a dialog box with the message (n - 1) times. For example, if you drop 10 files to a file type custom field, you have to click the "OK" button 9 times to close dialog boxes.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Mizuki ISHIKAWA wrote:
> > I have attached a patch to fix this issue.
>
> Thank you for posting the patch but I found a strange behavior when trying to upload files.
>
> An error message @:error_attachments_too_many@ is displayed when you attempt to drop two or more files. It is OK. However, you will see a dialog box with the message (n - 1) times. For example, if you drop 10 files to a file type custom field, you have to click the "OK" button 9 times to close dialog boxes.

This is a problem that occurs not only with custom fields, but also with regular file attachments.(If you attach 20 files at the same time, you need to delete the alert 10 times.)
Probably another issue related to #18555.

--------------------------------------------------------------------------------
Go MAEDA wrote:
> Mizuki ISHIKAWA wrote:
> > I have attached a patch to fix this issue.
>
> Thank you for posting the patch but I found a strange behavior when trying to upload files.
>
> An error message @:error_attachments_too_many@ is displayed when you attempt to drop two or more files. It is OK. However, you will see a dialog box with the message (n - 1) times. For example, if you drop 10 files to a file type custom field, you have to click the "OK" button 9 times to close dialog boxes.

I have attached a patch for this issue. https://www.redmine.org/issues/18555#note-10
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Mizuki ISHIKAWA wrote:
> > I have attached a patch to fix this issue.
>
> Thank you for posting the patch but I found a strange behavior when trying to upload files.
>
> An error message @:error_attachments_too_many@ is displayed when you attempt to drop two or more files. It is OK. However, you will see a dialog box with the message (n - 1) times. For example, if you drop 10 files to a file type custom field, you have to click the "OK" button 9 times to close dialog boxes.

Fixed in r20711.
--------------------------------------------------------------------------------
Committed the patch. Thank you for your contribution.
--------------------------------------------------------------------------------

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0