dtube / ipfs-uploader

Files manipulation and adds to IPFS gracefully
GNU General Public License v3.0
115 stars 48 forks source link

ipfs-uploader

Files manipulation and adds to IPFS gracefully

Confirmed working on Windows 7+ and Linux. Untested on mac.

Dependencies required:

Starting it in dev mode

Navigate to the Uploader.Web directory and just do dotnet run

Available Calls

Once your instance is started, it should listen on localhost:5000 by default and serve all these calls.

GET

POST

Curl example: curl -F "video=@./video.mp4" http://localhost:5000/uploadVideo?videoEncodingFormats=240p,480p,720p&sprite=true

Configuration

The main config file is available as appsettings.json.

Building and running it in production

Building

dotnet publish -c Release will create a /bin/Release/netcoreapp2.0/publish folder

Running

Navigate to the publish folder and dotnet Uploader.Web.dll

Logging

Everything gets logged inside the logs folder and each process has it's own log file (ffmpeg, ipfs, etc). If you want logs in a different folder, you need to edit the log4net.config file.