Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • B blaupload
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Luke Bratch
  • blaupload
  • Merge requests
  • !2

Send a POST to blaears when a file is uploaded

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Joe Robinson requested to merge blaears_post into master Dec 11, 2015
  • Overview 6
  • Commits 7
  • Changes

Blaears now listens on /blaupload for POSTs containing 'url' and 'channel', and will post those URLs to that channel.

I've added a config value $posturl for the URL to post to - if this is not set then nothing will be done.

If it is set, then it will send a POST containing the uploaded file URL and the channel set in $postchannel in the config.

I'm not sure on best practice for global variables in PHP. I passed them in as function arguments, but we could also use 'global $posturl, $postchannel' instead.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: blaears_post