I have a static super table field where logged in users should be able to upload one image to the super table field.

With my form I can save my text values but I cannot save my image.

Here is my form (simplified):

<form method="post" accept-charset="UTF-8" enctype="multipart/form-data">
    <input type="hidden" name="action" value="entries/save-entry">
    <input type="hidden" name="redirect" value="filed/{slug}">
    <input type="hidden" name="sectionId" value="26">
    <input type="hidden" name="enabled" value="1">
    <input type="hidden" name="entryId" value="35076">
    <input type="text" name="title" value="my title">

    <input type="hidden" name="fields[static]" value="">
    <input type="hidden" name="fields[static][35077][type]" value="44">
    <input type="hidden" name="fields[static][35077][enabled]" value="1">
    <input type="text" name="fields[static][35077][fields][textfield]">
    <input type="file" name="fields[static][35077][fields][logo]">

    <input type="submit">

What I am doing wrong?

  • does nobody has an idea? I found out that it has something to do with javascript. Does a XMLHttpRequest not work for image uploads in Craft CMS? – Peter L Jan 31 at 7:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.