ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Need to Remove HTML Tag from File Upload

May 31, 2012 9:03am

Subscribe [2]
  • #1 / May 31, 2012 9:03am

    timharris

    1 posts

    Hi,

    We recently upgraded from EE 1.x to 2.5.  In our previous version, the user uploaded a file and the file path only displayed in the text field after upload (i.e., image.jpg).  Currently, in 2.5, when the image is uploaded, the text returned has not just the path, but also the complete HTML image tag (i.e., image.jpg.  This requires our users to go back in and delete the HTML tag or the image does not display correctly.  I would prefer to get the path-only back since there are thousands of entries in our database with path-only and changing all of the templates to accommodate this new format would be a significant investment.

    Please advise.

  • #2 / Jun 01, 2012 12:31pm

    Shane Eckert

    7174 posts

    Hello timharris,

    Thank you for posting your question here on the ExpressionEngine forums.

    What kind of file field are you using to upload images? Is this in a text area?

    Please let me know!

    Thank you,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases