Alfresco REST Upload API - Customization
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2014 02:13 PM
Can the 'content-type' of http response header be customized for the Out-of-the-Box REST upload API?
By default, the http response header's 'content-type' is returned with value - 'application/json'… Can this be customized to return as 'plain/text'…
By default, the http response header's 'content-type' is returned with value - 'application/json'… Can this be customized to return as 'plain/text'…
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2014 01:30 AM
Why do you want to do that? You can always override out of box webscripts and can change whatever you want to do. As a part of best practice create a replica of webscript and then modify that to keep core intact.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2014 01:43 AM
Thanks for responding.. I am using a HTML form with action pointing to this rest endpoont .. I use an iframe to capture the target's response.. It works fine for chrome n Firefox as they even render the application/json response HTML format.. But IE does not behave similarly..it downloads the non HTML/plain text responses..
