[Cartoweb-users] Upload georeferenced images with Edition plugin
Oliver Christen
oliver.christen at camptocamp.com
Tue Jun 19 01:59:59 EDT 2007
Hi Igor
Im not sure why you get an error, maybe if you tell me which error message
you get exactly ?
I think this would be easier to do in a popup than directly within the
edition javascript.
Maybe simply add a link in the edition javascript that would open the popup,
that would prevent getting weird side effect because of the complexity of
the edition javascript. Thats just an idea.
regards
Oliver
> Hi, List!
>
> I want to use CW edition plugin to add points on map with linked images
> (JPG etc).
> This plugin works well (except some problems), and I want to write some
> additional
> functionality to it.
>
> When I try to add a point to map (to PostGIS layer), I see a table with
> TEXT|INTEGER editable fields. One of my fields is named "IMAGE" and user
> must
> enter here a relative path to this image on my WWW-server,
> for example "/cartoweb/incoming/12345.jpg". It works. But I want more.
>
> I'm new to PHP, so without any help I'll spend a lot of time on this task.
>
> What I want:
>
> 1. Look at the sample picture. I want to add 2 buttons at "image" text
> field
> ("Browse"- to select file from user disk, "Upload" - to upload it to
> server).
> I've added them (in dhtmlEdit.js), but JS sends ERROR on
> <input type="file" value="userfile"> field (that is below 'image' text
> field)
> based on security reason.
>
> 2. By pressing "Upload" I want to upload selected file to server, server
> must
> generate new unique name to this file and return this new filename to
> user
> form into "image" text field without reloading main page. I know he
> basics
> of uploading files to server and it works, but how to attach it to CW
> in this
> special way?
>
> That's all, and I hope you can help me.
>
> Best regards, Igor.
>
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users
>
More information about the Cartoweb-users
mailing list