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.

File Upload using Safecracker Form

June 29, 2011 9:13am

Subscribe [1]
  • #1 / Jun 29, 2011 9:13am

    SF9

    18 posts

    After upgrading to EE 2.2 from EE 2.1.3 I cant get the file upload working using a Safecracker form on the website. I can however upload files in the CP. When you click on ‘Add File’ on the website it does nothing only bring you to the top of the page.

    The code I am using in the safecracker form is {field:recipes_image}

    Is this code correct and if not what is the code for uploading Image files in Safecracker Form?

  • #2 / Jun 30, 2011 5:32am

    John Henry Donovan

    12339 posts

    SF9,

    Is this for a regular File field for a SafeCracker File field?

    Can you make sure that you have replaced the safecracker_file folder with the new one from the EE2.2 download in the third-party directory.

    Is this code correct and if not what is the code for uploading Image files in Safecracker Form?

    That code is correct yes

    Do you get any JavaScript errors?

    Does the field style correctly?

    Saw something related in the Bug Tracker here.

  • #3 / Jun 30, 2011 11:43am

    SF9

    18 posts

    Thanks John,

    The update of Safecracker did the trick. Just for reference were using the safecracker file field.

    Thanks again.

  • #4 / Jun 30, 2011 12:00pm

    John Henry Donovan

    12339 posts

    Excellent! Feel free as always to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases