プロジェクト

全般

プロフィール

Vote #75445

完了

Drag & Drop does not work with Safari 5.1

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

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

0%

予定工数:
category_id:
19
version_id:
87
issue_org_id:
17581
author_id:
106624
assigned_to_id:
0
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
84
ステータス-->[Closed]

説明

see #13932-13 - i would have re-opened but i do not have permission


journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Why remove the @'FileReader' in window@ test?
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Why remove the @'FileReader' in window@ test?

fred, could you give us the answer?
--------------------------------------------------------------------------------
@FileReader@ is not needed. (Search repo for FileReader)

Checking for @FileReader@ was simply a hack for Safari 5.1 to return @false@. @FileReader@ is for actually reading a file in a browser (like dragging a text file into the browser and creating a @<textarea>@ tag and displaying contents of the file). Redmine is not reading the contents of the File, just uploading it.

a better test would be:
<pre><code class="js">
if ($.ajaxSettings.xhr().upload && inputEl.files)
//but this instantiates a new XMLHttpRequest object and does nothing with it.
</code></pre>

but like i said (#13932-13) the real problem is jQuery. jQuery _was_ amazing, but unless you need to support IE8 and below there is really no need for it these days.
--------------------------------------------------------------------------------
Committed in trunk, 2.5-stable and 2.4-stable, thanks.
--------------------------------------------------------------------------------


related_issues

relates,Closed,13932,File upload does not work with Safari

Admin Redmine さんが約4年前に更新

  • カテゴリAttachments_19 にセット
  • 対象バージョン2.4.7_87 にセット

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

いいね!0
いいね!0