1
phillipd
Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/6 16:17

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I found the "mimetype.php" file and tried adding "application/vnd.sun.xml.writer" to it's array section, updated the module but this mimetype doesn't appear. Here is the exact syntax I added:

"ps" => "application/postscript",
"smi" => "application/smil",
"smil" => "application/smil",
>>>>>> "sxw" => "application/vnd.sun.xml.writer",
"wbxml" => "application/vnd.wap.wbxml",

This is the mimetype I get in the error when it won't let me upload a StarOffice Writer file. What am I doing wrong?

Thanks

Doug P

2
Catzwolf
Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/6 17:21

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


You will have to add this to the mimetype class in the class folder of the my_downloads module

I will fix this for then next release.

3
phillipd
Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/6 17:42

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I'm sorry, I guess I don't understand. I thought thats what i did. I added the mime type to the mimetype.php file in the class directory. Could you be a little more specific please?

Regards

Doug P

4
phillipd
Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/7 17:24

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I'm sorry to be so persistant, but do you have an answer for my question???

Should adding a mimetype to the mimetype.php work? Is that the proper way to do it??? If not, what is the correct method? Please be verbose and specific.

Thanks for a great module

Doug P

5
Catzwolf
Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/7 18:41

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


Quote:

phillipd wrote:
I'm sorry to be so persistant, but do you have an answer for my question???

Should adding a mimetype to the mimetype.php work? Is that the proper way to do it??? If not, what is the correct method? Please be verbose and specific.

Thanks for a great module

Doug P


Sorry,

Open xoops_version.php and you will find another array that defines the mimetypes to be used, add your new mimetype there as well as the mimetypes.php in class and then update the module. You should not be able to choose and use this new one.

ATB

Catz

6
phillipd
Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/7 19:56

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I added "sxw" => "application/vnd.sun.xml.writer", to the top of the array in class/mimetype.php. Then added:

"application/vnd.sun.xml.writer" => "sxw",

to the top of the array in xoops_version.php

Updated the module. The new type did NOT appear in the output when the module was added. It does not appear in the list of types, nor does it allow me to upload the sxw mimetype file. I don't understand the mechanism. If the files are used to fill out the database, why doesn't the new type get added? Is there some other location that need be modified?

Doug P

7
phillipd
Re: Trying to add a mimetype in mydownloads (2.1) for StarOffice files
  • 2004/5/7 21:04

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Fixed it, I discovered there are two arrays in xoops_version.php. I added it to the second array and the new mimetype now appears in the "Preferences list" and the file can now be uploaded. In the next version will there be a mechanism to add mime types? Also, while I have your ear, it seems like you have to do alot of "clicking" to get to a download. When you click the "Downloads" button on the main menu, you don't see any available downloads. Even clicking all the letters 0 - 9 and a - z. Only when clicking the "popular" link, which is not intuitively obvious, do any downloads appear. Perhaps I don't understand the "flow" of downloads but it seems a little difficult to find files...

I would be happy to discuss this more at youe convenience.

Once again, thankyou for a great module, and your development time!

Regards

Doug P

Login

Who's Online

267 user(s) are online (218 user(s) are browsing Support Forums)


Members: 0


Guests: 267


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits