Don’t want to pay for services or are you worried that your current service might delete your media at any time?
Host your own media server for FiveM—essentially a self-hosted, simplified version of Imgur.
I developed an API tonight for uploading media for various resources. It’s incredibly fast compared to the alternatives and it’s completely free!
I created it because I needed an upload solution for lb-phones to handle videos, images, and audio.
Its not a solution just for FiveM but it was needed for the project that why the name
Performance Comparison
1-Minute Video (approximately 28 MB)
fivem-media: 6 seconds, 0 out of 10 crashes
lb-upload: Crashes with any file over 5 MB
Fivemmanager (Paid, if over 10GB): 65+ seconds with 7 out of 10 crashes
2-Minute Video (approximately 60 MB)
fivem-media: 10 seconds, 0 out of 10 crashes
5-Minute Video (approximately 133 MB)
fivem-media: 22 seconds, 0 out of 2 crashes
If you have any ideas on how to improve the current setup, please let me know. Note that adding more functions is not in scope for now.
Feel free to use it, but note that setting it up requires some technical knowledge.
But for some reason im just hitting a million brick walls trying to install it.
ive gotten it from stupid premission issues, to apache for some reason overriding everything, to now {“message”:“Cannot POST /api/media/upload:10000”,“error”:“Not Found”,“statusCode”:404}
I changed the port in the .env and made sure i had no other issues.