Hi.
I'm trying to put a torrent-File into the Media-Database (german: Mediendatenbank).
Uploading a file called "test.torrent" will result in a file named "test.torrent" on the webserver, but in the DB the filename is just "test.torre". That way I'm not able to use this file directly. I could add a link to a new entry using the Mediadatabase, but the link created by this function also calls "test.torre", which of course doesn't work. Also deleting this entry from the Mediadatabase just leads to a message, that test.torre couldn't be deleted, because the file doesn't exists, leaving the test.torre-file on the Webserver for me to manually remove.
Long filename-extensions get cut off
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Long filename-extensions get cut off
Yes, the database column for "file extension" is only varchar(5), so you cannot store file extensions with more than 5 characters.
You can change the varchar(5) to varchar(100) on your system to bypass this behaviour. Use phpMyAdmin or a similar tool to change the DB setting...
Regards,
Garvin
You can change the varchar(5) to varchar(100) on your system to bypass this behaviour. Use phpMyAdmin or a similar tool to change the DB setting...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/