|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Admin GUI - xquery content type problemHi,
If I create an xquery with the admin interface to exist File>Create Blank File option it gets the content type text/xml and I couldnt find a way to change it and when you do a get on the rest url to the file the xquery gets downloaded as an xml file if you create the file on the filesystem and use File>Store File the content type of the file is set to application/xquery and when you do a get on the url eXist executes the query (as I wanted). In both cases the file has the extension .xql Can anyone explain why the two ways of creating the same file with the same extension get treated differently, its counter-intuitive. Is there any way to change the content type of a resource via the admin gui (or any other way)? Andy Bailey http://www.hazlorealidad.com ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: Admin GUI - xquery content type problemI've been meaning to mention this - "Create blank document" should ideally use
the same file-extension-based content-type discovery that "Store file" uses. Another thing that would make life easier for us app-builders (as opposed to db-populators, who seem to get all the attention sometimes ;-) would be if the "Files of Type:" popup in the Store file > Select files directory remembered what you set it to last - that way, we'd only have to select "All Files" once per session instead of every single damn time. I've almost reached a critical mass of functionality in my project - if these are still open issues in a month or two, perhaps i'll look into supplying some patches, by way of helping pay for all of my whining on the list... --alex Andrew Bailey wrote: > Hi, > > If I create an xquery with the admin interface to exist > File>Create Blank File option it gets the content type text/xml and I > couldnt find a way to change it and when you do a get on the rest url > to the file the xquery gets downloaded as an xml file > if you create the file on the filesystem and use File>Store File the > content type of the file is set to application/xquery and when > you do a get on the url eXist executes the query (as I wanted). ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
| Free Forum Powered by Nabble | Forum Help |