Posted on: 06/19/03 12:09pm
By: Anonymous (Anonymous)
Hello,
Since upgrading, and after reading about others having problems w/ mime types and image uploading , I am unable to batch import users.
I use .txt extension for my user files, should I use something else?
I added 'text/plain'=>'.txt' to the $upload->setAllowedMimeTypes part on line 483 in usersettings.php, still no... but then again, that is for userphotos...
I am in dire need of this to work, any help will be greatly appreciated.
batch import mime type error
Posted on: 06/19/03 01:03pm
By: Tony
You need that mime type to the code in http://www.yourgeeklogdomain.com/admin/user.php. That is the admin screen that uses the upload class. I'd be really surprised if that mime-type isn't already supported by the code. You could be dealing with a firewall issue.---The reason people blame things on previous generations is that there's only one other choice.
batch import mime type error
Posted on: 06/19/03 01:20pm
By: Anonymous (Anonymous)
Hey,
thanks for the quick reply - but, to no avail.
admin/user.php does have a specific line which designates to allow text/plain mimetype, but this is the error I receive once I click the import button:
ERRORS
Mime type, text/plain, not in list of allowed mime types
Is this reproducable for anybody else?
This is a fresh install of 1.3.7sr2 and all I'm doing is trying to batch import a .txt file of 10 or so users.
The system running the gl installation isn't firewalled.
batch import mime type error
Posted on: 06/19/03 01:48pm
By: Dirk
This is actually a bug ...
Since Geeklog 1.3.7sr2, the setAllowedMimeTypes() functions has to use MIME type / extension pairs. So change that line to read
$upload->setAllowedMimeTypes(array('text/plain'=>'.txt'));
and try again.
This has been overlooked when preparing the 1.3.7sr2 release. Sorry about that ...
bye, Dirk
batch import mime type error
Posted on: 06/19/03 01:50pm
By: Anonymous (Anonymous)
you the man.
Thanks.
Re:batch import mime type error
Posted on: 10/11/03 01:08am
By: Anonymous (The Dude)
Please help. Is it user.php or usersettings.php? Can\'t find the code you mention in user.php.
Thanks.
Re:batch import mime type error
Posted on: 10/11/03 01:26am
By: thedude
Hi Gang..
I\'m having same issue when I tried to upload the batch for new users this is the error I got:
Mime type, text/plain, not in list of allowed mime types
Brand new installation of 1.3.7sr2 and pardon my ignorance being a novice geeker but can anyone help?
I\'ve checked and followed the comment Dirk made on this link to no avail.
http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=18488
I\'ve modified the usersettings.php to allow text/plain to no avail. I can\'t find user.php per link suggested to be modified with the new tag. Any other thought? Please help. Thanks.
TD
Re:batch import mime type error
Posted on: 10/11/03 04:16am
By: Dirk
The file in question is in the admin
directory, i.e. admin/user.php
.
bye, Dirk