Downloading files from the internet: .xm receive a 404 error, while mp3s don't!

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Madrayken
Party member
Posts: 126
Joined: Sun May 04, 2014 4:21 pm
Location: Oakland CA
Contact:

Downloading files from the internet: .xm receive a 404 error, while mp3s don't!

Post by Madrayken »

Hi folks.
I've been working in a fairly hefty-sized RPG for over 18 months, and was keeping my .love file size down by allowing players to download music directly from my website using the lovely little socket library discussed here: https://love2d.org/forums/viewtopic.php ... 4&start=10
It's been working beautifully for over a year, but I decided to move from music in .mp3 files to tracker .xm files and now I'm getting 404 errors which are really confusing to me.

I am *not* a web-coder by any means and most online coding stuff makes zero sense to me. Am I missing something fundamental about requesting a file via http request that isn't a simple image or music format?

[Edit] For the record, I've tried using simple http requests in my browser and get the same result, despite FileZilla being absolutely certain the .xm file is where I think it is, and is named what I think it is named.
Is it something to do with 'MIME types'? If so, I'll delete this post, as it's not relevant to this forum.
Discord: https://discord.gg/tYfHgXc
Bandcamp: https://madrayken.bandcamp.com/
Twitter: @Fluttermind
User avatar
Stifu
Party member
Posts: 106
Joined: Mon Mar 14, 2016 9:53 am
Contact:

Re: Downloading files from the internet: .xm receive a 404 error, while mp3s don't!

Post by Stifu »

Hey. This is probably not related to love2d, but that doesn't mean we can't help you with that. Some web servers have a whitelist of allowed file extensions for static files. Since .xm files are not common, I guess you need to configure somewhere that they should be reachable as static files. How to do that exactly depends on your web server. Why not ask your web host for help?
Zabuyaki, our upcoming beat 'em up: https://www.zabuyaki.com
User avatar
pgimeno
Party member
Posts: 3548
Joined: Sun Oct 18, 2015 2:58 pm

Re: Downloading files from the internet: .xm receive a 404 error, while mp3s don't!

Post by pgimeno »

Check also for case sensitivity, just in case.
Post Reply

Who is online

Users browsing this forum: slime and 71 guests