Get MimeTypes using PHP
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2012 07:42 AM
Hi Everybody,
I am trying to integrate alfresco to my php application through API.
Can anyone help me that how can I get all mimetypes available in alfresco dynamically?
Thanks in Advance,
Devang Mehta
I am trying to integrate alfresco to my php application through API.
Can anyone help me that how can I get all mimetypes available in alfresco dynamically?
Thanks in Advance,
Devang Mehta
Labels:
- Labels:
-
Archive
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2012 04:37 AM
Hello Devang,
If you are working on Alfresco 3.4 or greater you may find all the mimetypes at
http://<servername>:<port>/alfresco/service/mimetypes
This will list all the currently registered mimetypes, and provide a details link for each one. Make a call to this Webscript through your API and that should work fine.
Thanks,
If you are working on Alfresco 3.4 or greater you may find all the mimetypes at
http://<servername>:<port>/alfresco/service/mimetypes
This will list all the currently registered mimetypes, and provide a details link for each one. Make a call to this Webscript through your API and that should work fine.
Thanks,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-27-2012 12:47 AM
yes , It works!!!
Thanks.
Thanks.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2012 07:12 AM
It's working for 3.4 or higher versions.
What if instance is of version 3.2 or 3.3?
What if instance is of version 3.2 or 3.3?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-15-2012 08:11 AM
You may be able to "backport" some of the code. However its probably easier to upgrade.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2012 01:15 AM
Thanks,
in 3.4 or higher version I can easily get list of all register mimetypes.
Detail : http://<servername>:<port>/alfresco/service/mimetypes. Thanks to sujaypillai.
And what if I want to get mimetype description to display in detail view.
Foe eg. for image/jpeg, we are displaying JPEG Image OR application/pdf, we are displaying Adobe PDF Document
So is there any dynamic way to get this description?
in 3.4 or higher version I can easily get list of all register mimetypes.
Detail : http://<servername>:<port>/alfresco/service/mimetypes. Thanks to sujaypillai.
And what if I want to get mimetype description to display in detail view.
Foe eg. for image/jpeg, we are displaying JPEG Image OR application/pdf, we are displaying Adobe PDF Document
So is there any dynamic way to get this description?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2012 08:45 AM
Don't think so there is a dynamic way. Even in share-forms they use static reference [e.g. tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\form\controls\mimetype.ftl].
I am trying my hands on it… Will update you soon.
Thanks,
I am trying my hands on it… Will update you soon.
Thanks,
