Events for Image Uploads

Last post 01-15-2004, 3:18 AM by MrTall. 2 replies.
Sort Posts: Previous Next
  •  01-08-2004, 3:32 AM 180

    Events for Image Uploads

    At the moment I'm playing with intergrating CuteEditor into a Portal Site I've written.  The site tracks all images and flash uploads in a database to allow housekeeping of the files when the HTML they are associated with is deleted.

     

    Is there anyway with CuteEditor to catch the file uploads so I can keep the database updated?  There does'nt appear to be a specific event but is there some was of doing it with the TextChanged event?

     

    Thanks for you help

     

    Chris

  •  01-15-2004, 12:29 AM 204 in reply to 180

    Re: Events for Image Uploads

    You could parse the text, looking for <img> tags. then get the src attribute. This can be done using DOM or string methods.

    This method will not track the uploads,but the actual usage of the images.

  •  01-15-2004, 3:18 AM 209 in reply to 204

    Re: Events for Image Uploads

    Cheers

     

    Yeah I can strip out the img urls fairly easily and then do a comparison against the images known to be related to that bit of html and update as appropriate.  Its not quite as eligant as I was hoping but it should do the job.

     

    Thanks for your help

     

    Chris

View as RSS news feed in XML