[mapguide-users] uploading resources
Zak James
zak4ms at gmail.com
Thu Oct 26 13:57:33 EDT 2006
Jose,
I notice that you are trying to do SETRESOURCE on a LoadProcedure. I
don't think that's what you want if you're trying to push data to the
server. The basic steps are
1) do SETRESOURCE with suitable xml to create a FeatureSource
2) submit a form to the mapagent.fcgi with method post and with
OPERATION set to SETRESOURCEDATA. You can use the form in the mapagent
/mapguide/mapagent/setresourcedataform.html file as a guide.
zak
On 10/26/06, Jose Manuel C G <gis at mapas-sll.com> wrote:
>
> I'm developing an application to upload massively resources in php.
>
> I try to pass via url the parameters, some like:
>
> http://127.0.0.1/mapguide/mapagent/mapagent.fcgi?OPERATION=SETRESOURCE&VERSION=1.0.2&RESOURCEID=Library://test/myfile.LoadProcedure&CONTENT=temp/myfile.xml
>
> Question 1)
>
> I can't pass the CONTENT variable like a url. I try:
> temp/myfile.xml
> http://127.0.0.1/mapguide/temp/myfile.xml
> ...
> Only c:\myfile.xml works (local file), but I need upload a file in a server.
>
> Question 2)
>
> mapagent.fcgi ask login and password every time I want to upload a file.
> It's right but I'd need pass this like parameters, ex:
> mapagent.fcgi?Admin=Administrator&Password=admin&...
>
> Any idea to do this?
>
> thk.
> --
> View this message in context: http://www.nabble.com/uploading-resources-tf2514722.html#a7013473
> Sent from the OSGeo MapGuide mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
> For additional commands, e-mail: users-help at mapguide.osgeo.org
>
>
--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca
More information about the Mapguide-users
mailing list