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.

Unable to upload file via channel form (EE 2.8)

September 24, 2014 6:12pm

Subscribe [1]
  • #1 / Sep 24, 2014 6:12pm

    ucbnews

    1 posts

    Hi,

    I am able to create new entries in my channel via the external form; however, when I select a file to upload via the form, it silently fails to upload.

    {exp:channel:form channel="suggested_content" return="suggestions/thanks" }
    ...
    <input type=“file” name=“suggested_image” />

    — I can upload directly to the channel within the Control Panel Content/Publis/Edith to the correct directory.
    —The member group logged into the external form has upload rights to the upload directory

    What else should I check?

    UPDATE:
    This solution was to to use the tag {field:suggested_image}, then look at the generated form code in order to reconstruct with the correct names and values:

    <input type=“file” data-directory=“12” name=“suggested_image”>
    <input type=“hidden” value=“12” name=“suggested_image_directory”>

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

ExpressionEngine News!

#eecms, #events, #releases