Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Latest commit

 

History

History
60 lines (52 loc) · 906 Bytes

README.md

File metadata and controls

60 lines (52 loc) · 906 Bytes

Imaginarium

required

apt install php-gearman webp

# if use sqlite3
apt install php-sqlite

# if use mysql
apt install php-mysql

# if use PostgreSQL
apt install php-pgsql
mkdir assets/compile
chmod 0777 assets/compile
mkdir storage
chmod 0777 storage
cd assets/config
for i in *.dist; do cp $i ${i:0:-5}; done    # thanks Sttv (Sergey Zharkov) 
# if use SQLite
touch file.db          
chmod 0644 file.db

Callback response examples:

{
  "status": "ok",
  "fileSize": "3402794",
  "sizes": {
    "width": "5000",
    "height": "3125"
  },
  "mime": "image\/jpeg",
  "channels": "3",
  "hash": "81Xoxt",
  "user": "default",
  "data": {
    "Filename": "far-kray-4-5000x3125-gimalai-gori-shuter-2615.jpg",
    "Upload": "Submit Query"
  },
  "query": {
    "q": "api\/upload\/default",
    "id": "452"
  }
}
{
  "status": "error"
}