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

lordbecvold/media-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RANDOM MEDIA API

this API is for storing images, videos and gif on the web space.

INFO

I coded this app for my friend and I decided to add it to my repository, maybe it will be useful for someone even if it is not very modular

CONFIG

  • dev_mode: enable php error handlerer
  • https: enable only https access
  • token: token for validate request access
  • storage_path: default subfolder storage

INSTALLATION

  • run install script
  • set web root public/
  • grant file write permission
  • grant file read permission
  • add all media to sub dirs (requires use names without space)

ERROR CODES

  • 1: https required error
  • 2: config value token is empty or null
  • 3: api token is null use /?token=1234
  • 4: api token is invalid
  • 5: add media parameter to url
  • 6: media type not found
  • 7: category get parameter not found
  • 8: file get parameter not found
  • 9: category get parameter contains insecure character '/'
  • 10: file get parameter contains insecure character '/'
  • 11: media or category not found

Dependencies

This project requires PHP8 or < .

About

API for storing images, videos and gif on the web space.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published