User Login    
 + Register
  • Main navigation
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Who's Online
2 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 2

more...
Donation
If you like NovaSmart modules & hack, please donate some money. We will use the money to pay out programmer for "extra hour " job so your favorite modules/hack will get updated.


for



* Credit card also accepted through paypal

Total Donation so far: USD$45.00
Alexa Ranking

Browsing this Thread:   1 Anonymous Users





mimetype problem???
Just popping in
Joined:
2008/8/21 23:03
Group:
Registered Users
Posts: 7
Level : 1; EXP : 60
HP : 0 / 15
MP : 2 / 407
Offline
While uploading a .swf attached to an article, the upload is failing with an error in Xoops:

Errors Returned While Uploading
MIME type not allowed: application/x-shockwave-flash

I have checked the mimetypes listed in AMS/class/class.mimetype.php, and .swf appears to be correctly listed. Any ideas? Thanks again.

Posted on: 2008/8/28 2:21
Transfer the post to other applications Transfer


Re: mimetype problem???
Just can't stay away
Joined:
2008/3/12 17:44
Group:
Webmasters
Posts: 76
Level : 7; EXP : 65
HP : 0 / 166
MP : 25 / 4709
Offline
Looks valid issue. I'll try to duplicate it, fix it in AMS 2.50 Final and post the solution here.

Posted on: 2008/8/28 3:33
Transfer the post to other applications Transfer


Re: mimetype problem???
Webmaster
Joined:
2008/3/10 9:41
Group:
Webmasters
Registered Users
Posts: 5
Level : 1; EXP : 34
HP : 0 / 8
MP : 1 / 241
Offline
Sorry.. XOOPS not allow to upload it.

Posted on: 2008/9/8 6:08

Edited by NovaSmart on 2008/9/8 6:49:41
Transfer the post to other applications Transfer


Re: mimetype problem???
Just popping in
Joined:
2008/9/13 0:54
Group:
Registered Users
Posts: 5
Level : 1; EXP : 34
HP : 0 / 8
MP : 1 / 229
Offline
Any progrees ore hint.
I have a problem with application/vnd.ms-powerpoint

It's in the class.mimetype.php file of the AMS2.52 module.
It's in the mimetypes.inc.php file of XOOPS 2.4.0RC

But I can't upload

Posted on: 2009/9/29 1:32
Transfer the post to other applications Transfer


Re: mimetype problem???
Not too shy to talk
Joined:
2008/3/12 14:56
Group:
Registered Users
Posts: 35
Level : 4; EXP : 68
HP : 0 / 92
MP : 11 / 2605
Offline
Did you add all possible variants?
"pot" => "application/vnd.ms-powerpoint",
"pps" => "application/vnd.ms-powerpoint",
"ppt" => "application/vnd.ms-powerpoint",

uper and lower case might also be a problem

Posted on: 2009/9/30 2:01
Transfer the post to other applications Transfer


Re: mimetype problem???
Just popping in
Joined:
2008/9/13 0:54
Group:
Registered Users
Posts: 5
Level : 1; EXP : 34
HP : 0 / 8
MP : 1 / 229
Offline
Yeps - but I found out that in submit.php line 418 there are some hardcoded mimetypes.

I just add 'application/vnd.ms-powerpoint' to the array and the it works

Posted on: 2009/9/30 2:38
Transfer the post to other applications Transfer


Re: mimetype problem???
Just can't stay away
Joined:
2008/3/12 17:44
Group:
Webmasters
Posts: 76
Level : 7; EXP : 65
HP : 0 / 166
MP : 25 / 4709
Offline
Thanks anderssk & jobrazo.
I'll fix it when AMS 3.0 Beta 1 is out. Harcoded mimetypes is a bad idea.. and I plan to make it customize through preferences.

Posted on: 2009/10/1 8:48
Transfer the post to other applications Transfer


Re: mimetype problem???
Just popping in
Joined:
2008/9/13 0:54
Group:
Registered Users
Posts: 5
Level : 1; EXP : 34
HP : 0 / 8
MP : 1 / 229
Offline
Geat

Posted on: 2009/10/1 10:53
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]