HaschekSolutions / pictshare

:camera: PictShare is an open source image, mp4, pastebin hosting service with a simple resizing and upload API that you can host yourself. :rice_scene:
https://www.pictshare.net
Apache License 2.0
819 stars 123 forks source link

api/upload not return full URL #129

Closed changchichung closed 3 years ago

changchichung commented 3 years ago

I run pictshare with docker-compose docker-compose.yml

version: '3.3'

services:
  pictshare:
    image: hascheksolutions/pictshare:latest
    ports:
      - "804:80"
    volumes:
      - pictshare:/usr/share/nginx/html/data
volumes:
  pictshare:

upload file in command prompt

chchang@hqdc039:~/docker/pictshare$ curl -F "file=@docker-compose.yml" "http://192.168.11.39:804/api/upload.php"
{"status":"ok","hash":"foyvnl.txt","filetype":"text","url":"foyvnl.txt"}
chchang@hqdc039:~/docker/pictshare$ 

in document , API section , the command should return full URL like http://192.168.11.39:804/fovnl.txt" but it doesn't.

any suggestions ??