Extending Forum Post Attachments

This post has 2 Replies | 1 Follower

Not Ranked
Posts 16
Points 200
Orion Culver Posted: Fri, Jul 4 2008 7:46 AM

Heya,

I'm hoping someone could help me out...

I need to allow users to upload images when writing a forum post, & be able to embed the image in the body of their message at the same time.  I can see that posts allow uploading of files, but I can't see how an uploaded file can be embedded in the body of the message.  I was thinking that it'd be helpful to have 2 additional fields when uploading attachments:  a label for the full url to the uploaded image (for use when embedding an image in the message editor), & a thumbnail of the uploaded image.

Unfortunately, I can't seem to figure out how to get a handle on the uploaded file in a forum post.  I figure the class I'm wanting to extend is CommunityServer.Controls.PostAttachmentSubForm

, & while I can inherit from the class, add another label, & override DataBind(), I can't seem capture anything about the uploaded file after the modal control (where the file is actually uploaded) returns to the page.

- O8

 

Not Ranked
Posts 16
Points 200

whoops, forgot to mention that I'm using CS2007 for this development...

Thanks again in advance...

- O8

 

  • | Post Points: 5
Not Ranked
Posts 16
Points 200

DOHETH!

Yeah, from my research, the modal dialogue actually handles the uploading & storing of the (temporary) file attachment [in UploadPostAttachmentFormBase].  Once it closes, it passes an array of values back to the page that opened it, which handles showing the filename of the attached file.  So it appears that I can't get at the uploaded file unless I modify source code...

Does anyone else know of a way of displaying the absolute url for an uploaded file, based upon the post attachment source?

Thanks...

- O8

 

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com