Developer forum

Forum » CMS - Standard features » Frontend fileupload in item creator

Frontend fileupload in item creator

Hans Ravnsfjall
Reply

Hi

I have a page where i want it to be possible to upload an image from frontend while creating an item, but that doesn´t work

The page itself is here http://leinkjan15.net.dynamicweb-cms.com/Default.aspx?ID=8974

 

any ideas?

 

My item creator template looks like this

 

<div class="items">
    <div class="item-edit-form">
        <!--@ItemCreator:Edit.Form.Begin-->
      <p style="display:none;"> <!--@ItemCreator:Edit.Status--> </p>
        
            <div class="item-edit-fields-outer">
                <!--@ItemCreator:Edit.Form-->

              <!--@LoopStart(ItemPublisher:Items.Hvorjar_utbugvingar_er_verkatlanin_vidkomandi_fyri.List)-->
              <!--@LoopStart(ItemPublisher:Item.Hvorjar_utbugvingar_er_verkatlanin_vidkomandi_fyri.Fields)-->
             
              <!--@LoopEnd(ItemPublisher:Item.Hvorjar_utbugvingar_er_verkatlanin_vidkomandi_fyri.Fields)-->
              <!--@LoopEnd(ItemPublisher:Items.Hvorjar_utbugvingar_er_verkatlanin_vidkomandi_fyri.List)-->
            </div>

            <div class="item-edit-submission">
              <input style="display:none;" type="button" value='Cancel' />
                <input type="submit" value='Send' />
            </div>

                    <div class="validation-error">                    
                        <ul>            
                            <!--@LoopStart(ValidationErrors)-->
                                <li><!--@ItemCreator:Edit.Validation.FieldName-->: <!--@ItemCreator:Edit.Validation.Error--></li>
                            <!--@LoopEnd(ValidationErrors)-->    
                        </ul>
                    </div>                        
            <div class="items-clear"></div>
        <!--@ItemCreator:Edit.Form.End-->
    </div>
</div>

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Hans

You need to make an adjustment to the control when you need to support uploads. See release notes: http://developer.dynamicweb.com/releases/older-releases/dynamicweb-8-5.aspx#14531

And this thread: http://developer.dynamicweb.com/forum/development/how-to-upload-file-with-itemcreator.aspx

 

You must be logged in to post in the forum