Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 11:33 am EST
Geeklog Forums
batch import mime type error
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.
12
8
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
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.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
6
8
Quote
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.
8
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
8
9
Quote
Anonymous
Anonymous
you the man.
Thanks.
7
9
Quote
The Dude
Anonymous
Please help. Is it user.php or usersettings.php? Can\'t find the code you mention in user.php.
Thanks.
13
12
Quote
Status: offline
thedude
Forum User
Regular Poster
Registered: 12/28/02
Posts: 90
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
11
12
Quote
All times are EST. The time is now 11:33 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content