Giter VIP home page Giter VIP logo

maplerhost's Introduction

IF YOU ARE UPDATING FROM AN OLDER VERSION, JUST REPLACE ALL FILES AND ONLY RUN UPGRADE.PHP!

V0.2:
- Rewrote how the config is changed and recognised during installation
- Added an update script, aswell as a new config entry for storing the installed version. This should give the upgrade script the opportunity do do whatever it needs regardless what version you upgrade from.
- Added version check to index and admin page to ensure upgrade has been done before new features can be accessed!
- Cleaned up admin interface a bit(Users has been removed from the Dropdown, and given its own button;  added general settings page)
- When pariox cannot find an uploaded image (because it cannot access/find the temp PHP directory) it will now return the proper error instead of complaining thats it's a permission error
- Enabled directinking option.

ParioX (BETA 0.2)

ParioX is a php-written uploading, viewing and downloading tool for images, videos and files. Written to work for ShareX, but supports any POST request through form-data!

Features:

  • Supports uploading of images, videos and files!
  • mime type recognision, mimetypes not configured in the config are sorted as files and don't have a display feature
  • Build in mp4 player!
  • images scale to the size of the view window.
  • Instant download feature
  • User management system and multi user support. (planned in V0.3)

Requirements:

  • A recent version of MySQL/MariaDB
  • PHP 5.6
  • Apache, nginx or any webserver with PHP support.

Known issues/TODO:

  • Add support for Adsense on view.php / index.php
  • Create an actual front page and not a dummy bootstrap layout
  • Make it so the original filename will be kept upon download(this is more needed for uploaded files than images)
  • Clean up the view page a bit
  • the installation needs to be reworked and is a jquery mess, but works!
  • Clean up the admin page
  • Create roles for users and admins, now every user created has the power to delete other users.
  • Create chunked upload system to allow for large file uploads, and prevent issues with php's max file size.

FAQ

Q: I cannot upload a file that's larger than X megabytes!
A: ParioX's max file upload size is governed by the php max file size, and the php max post size settings in php.ini.

Q: why does XYZ look weird/unfinished?
A: This is a beta.

Q: Something's not working, and i'm sure i followed the instructions!
A: Please make an issue on the github issues page.

Q: Uploading an image returns a 500 error.
A: ParioX wasn't able to find the uploaded image in the temp php directory. This is a configuration issue in php.ini. set your php_tmp_dir

Why ParioX?

I wrote ParioX as an alternative to https://github.com/Pips801/UploadX, i wanted to use a custom uploader and UploadX did work, but only for images and it was quite a glitchy mess. Instead of rewriting it, i wrote ParioX from scratch from barebones PHP and 0 libaries. Just vanilla PHP, javascript and bootstrap as frontend keep ParioX running.

So why not use streamable for video, and imgur to share images?

The vast amount of upload services compitable with ShareX(out of the box) either have shady agreements that make you give away all your rights to whatever you upload. Besides this, some delete your images if they don't get enough, or too many views. ParioX runs on your own webserver meaning whatever you upload is yours to keep and delete.

But webservers and storage are expensive!

I currently pay 9 euro's a month for 200gb of storage on a VPS, and there's much better options for storage out there. Some shared hosting providers also provide 'unlimited' storage so get yourself a reputable host with a lot of storage options and you've got a great backup server for all your screenshots and clips you want to share.

Setup

  1. Clone the repository or download the files to your root folder of your website or a subdomain. Installing in a folder is not recommended!

  2. Ensure either: your database user has privilges to create databases, or if not you have created a database in advance. ParioX will attempt to create a database in the installation walktrough, or insert tables if it's unable to create it(if it has no permissions, or if the database already exists)

  3. navigate to your (sub)domain where you installed the ParioX files.

  4. Setup the database settings in the installation menu

  5. Setup the website settings in the installation menu

  6. Create a first user in the installation menu

  7. Delete the 'install' folder from your Pariox installation directory.

Usage

  1. Navigate to your pariox installation
  2. Login using the credentials you created
  3. go to utilities > users
  4. download the pre-made sxcu file for ShareX, and open this with ShareX.
  5. Open this file with ShareX and confirm the promt

step5

  1. Ensure installation was successful by testing an upload in the prompt that appears after step 5.

step6

Example .sxcu file



    {
  "Version": "13.0.1",
  "Name": "Pariox",
  "DestinationType": "ImageUploader, TextUploader, FileUploader",
  "RequestMethod": "POST",
  "RequestURL": "http://yourdomain.com/upload.php",
  "Parameters": {
    "key": "YOURAPIKEY"
  },
  "Body": "MultipartFormData",
  "FileFormName": "file"
}
    
    

maplerhost's People

Contributors

marcelgroeneveld avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.