Welcome to Geeklog, Anonymous Thursday, February 06 2025 @ 01:48 am EST
Geeklog Forums
Import Users Problem
Status: offline
Anon
Forum User
Junior
Registered: 10/18/06
Posts: 21
I have a fresh install of GL 1.4.0sr 5-1 and am trying to import users.
I have followed the instructions and prepared a tab delimited file .txt with full name, username and email address (headings as stated on the import page user.php?mode=importform) but when I press import, it come up with the following error:
Mime type, application/octet-stream, or extension of user_import_file.txt not in list of allowed types.
Please can anyone advise how to correct this?
Many thanks
Anon
I have followed the instructions and prepared a tab delimited file .txt with full name, username and email address (headings as stated on the import page user.php?mode=importform) but when I press import, it come up with the following error:
Mime type, application/octet-stream, or extension of user_import_file.txt not in list of allowed types.
Please can anyone advise how to correct this?
Many thanks
Anon
5
5
Quote
Status: offline
Anon
Forum User
Junior
Registered: 10/18/06
Posts: 21
I think that I have found the problem having read a response from Dirk in 2003 (http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=18489). I think there is a bug in the script.
In admin/user.php there is the line
I changed it to
The difference is a space between Types and (array
Hope this helps someone else.
Many thanks
Anon
In admin/user.php there is the line
Text Formatted Code
$upload->setAllowedMimeTypes (array ('text/plain' => '.txt'));I changed it to
Text Formatted Code
$upload->setAllowedMimeTypes(array('text/plain'=>'.txt'));The difference is a space between Types and (array
Hope this helps someone else.
Many thanks
Anon
5
9
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
That space surely didn't make the difference ...
From the error above, it's obvious that your browser sent the file as a binary file ("Mime type, application/octet-stream") instead of a text file. You must have done something differently when you did it the second time.
bye, Dirk
From the error above, it's obvious that your browser sent the file as a binary file ("Mime type, application/octet-stream") instead of a text file. You must have done something differently when you did it the second time.
bye, Dirk
6
4
Quote
All times are EST. The time is now 01:48 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