HumanSignal / HumanSignal/label-studio
Local File Not Found
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
Local file storage cannot access one of my datasets.
**To Reproduce**
Steps to reproduce the behavior:
1. Start label-studio:
```bash
LABEL_STUDIO_LOCAL_FILES_SERVING_ENABLED=true LABEL_STUDIO_LOCAL_FILES_DOCUMENT_ROOT=/ label-studio start
```
2. Upload files that specifies the local image get the error:
```bash
[WARNING] Not Found: /data/local-files/
```
and the labeling interface report:
```
There was an issue loading URL from $image value
Things to look out for:
URL is valid
URL scheme matches the service scheme, i.e. https and https
The static server has wide-open CORS, [more on that here](https://labelstud.io/guide/storage.html#Troubleshoot-CORS-and-access-problems)
Technical description:
URL: [/data/local-files/?d=home/USERNAME/data/OpenImages/testv7/0000c64e1253d68f.jpg](http://localhost:8080/data/local-files/?d=home/USERNAME/data/OpenImages/testv7/0000c64e1253d68f.jpg)
```
**I'm quite sure the path is correct and I can access the image. Also, I can access an image of another dataset, e.g., `/data/local-files/?d=home/USERNAME/data/COCO/val2017/xxxx.jpg`**
**Expected behavior**
Successfully loaded the image.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment (please complete the following information):**
- OS: Ubuntu
- Label Studio Version 1.17.0
**Additional context**
I have gone through other issues and found that the local storage support is disappointing. Why not simply read the file given the absolute path?
Contributor guide
Assessment
This issue has not been assessed yet.