Filename and web path

オープン
#66 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
32/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
backend

調査の方向性

The bug is in how CsvImport sets original_filename for files fetched by URL, so start with the file-import code path in the plugin and the place where the source URL is passed to Omeka core's file downloading. Confirm the bug by importing a row whose file column is a URL like http://example.org/tmp/myfile.jpg and checking the stored original_filename. Done means the stored name is myfile.jpg, verified by a test or a manual import. Core download handling may need to change, so check with maintainers first.

索引モデルが issue の本文から書いたものです。

説明

Currently, when CSVImport is used to add items with files, the newly created files received an original_filename that is the full web path of the file. That would be great to just get the filename as the web path will often be a temporary path, used to allow CSVImport to get the files over the web.

To add an example, when adding a record, I don't want the file to have for original_filename:
http://example.org/tmp/myfile.jpg but rather myfile.jpg

I am not sure that just a CsvImport fix could fix that with the current way omeka core handle file downloading.

主要言語
PHP
スター
20
フォーク
32
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

omeka/plugin-CsvImport のほかの issue

omeka/plugin-CsvImport の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。