Skip to content

[Feature request] Import project dataset with server's share file instead of select in local pc's file  #4931

Open
@shuseido

Description

My actions before raising this issue

Screenshot from 2022-09-10 16-09-00

Current Behaviour

  • Open page Project then click import dataset
  • Select share file(s) in FileManagerContainer (tab = "Connected file share")
  • Click OK

Possible Solution

  • New function to import with sting file path instead of file
  • or A class or method can get a File (object) when give it a file path
  • or FileManagerContainer can config method getFile() to return array of File(object) when select "share" tab

Context

  • I added FileManagerContainer in Import Dataset Modal, but not able to Import the dataset when select file in "connected share file" because it's a string (type) not a File (type)
  • I 've already revise some functon that checking extentsion of file but the import process still run method uploadFile and raise an error "Error: Request failed with status code 400. {"dataset_file":["No file was submitted."]}."
  • Please guide me a way to add a function to import dataset (in cvat/apps/dataset_manager/formats/my_custom_format) by passing a file_path instead of src_file.

Your Environment

  • Git hash commit: (just fix local, I dont commit any)
  • Docker version docker version: 20.10.17
  • Operating System and version (e.g. Linux, Windows, MacOS): Ubuntu 20.04
  • cvat version: 2.0

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions