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.

After Upgrade to EE 2.4 Cannot link files into an article

January 26, 2012 2:37pm

Subscribe [5]
  • #1 / Jan 26, 2012 2:37pm

    ACP Webmaster

    15 posts

    We just upgraded our site to EE 2.4. If a user is editing an article and wants to link an uploaded file or upload a new file to link the browse button does not work. We were on 2.21 and it was working. To confirm this issue I restored a copy of the site from backup and upgraded from 2.21 to 2.31 and confirmed that it worked, when I re-upgraded to 2.40 it broke.

  • #2 / Jan 27, 2012 6:09pm

    Kevin Smith

    4784 posts

    Hi ACP Webmaster,

    Sorry to hear you’re having trouble after the upgrade. Could you let me know what fieldtype you’re using to include files in Channel Entries? Using a standard File fieldtype, I wasn’t able to reproduce the issue here. Also, it may help if you include a screenshot of the problem at hand.

    I’m looking forward to helping you fix this up!

  • #3 / Feb 03, 2012 5:58pm

    ACP Webmaster

    15 posts

    We backed down from 2.4, I would have to upgrade again to reproduce the issue.

  • #4 / Feb 06, 2012 6:46pm

    Shane Eckert

    7174 posts

    Hello ACP Webmaster,

    Just let us know when you are ready to update again and try to work through this error.

    Is there anything else I can help with?

    Cheers,

  • #5 / Feb 09, 2012 4:03am

    Est Digital

    62 posts

    I’ve got the same problem. i upgraded an old 2.1.3 site to 2.4.0 and the default file upload field link doesnt popup the upload screen.

    I did a clean 2.4.0 install to test the file upload field and it doesnt work aswell.

    After clicking on the “Add file” link. the url adds an # which indicates to an javascript issue.

    EE 2.4.0
    safecracker 2.1

  • #6 / Feb 10, 2012 6:55pm

    Shane Eckert

    7174 posts

    Kees Internet,

    I am sorry to hear you are running into this problem with file uploads.

    Have you confirmed that paths are correct and file permissions are set correctly?

    I would like to ask the same question Kevin asked above. “Could you let me know what fieldtype you’re using to include files in Channel Entries? Using a standard File fieldtype, I wasn’t able to reproduce the issue here. Also, it may help if you include a screenshot of the problem at hand.”

    Looking forward to your response.

    Cheers,

  • #7 / Feb 14, 2012 4:29am

    Est Digital

    62 posts

    I’m using default file fieldtype as mentioned before.

    Screen1 (before clicking on the link): http://test240.kees-internet.nl/screen1.jpg
    Screen2 (after clicking on the link) : http://test240.kees-internet.nl/screen2.jpg

    <link href="{path=css/_ee_saef_css}" type="text/css" rel="stylesheet" media="screen" />
    <link rel="stylesheet" href="{site_url}media/css/custom-matrix.css">
    
    {exp:safecracker channel="dossier" return="/dossier/overzicht" entry_id="" error_handling="inline" include_jquery="yes" id="dossierform"}
    
    <input name="status" type="hidden" value="ingevoerd" />
    <input name="dossier-invoer-datum" type="hidden" value="{cur_date}" />
    <input id="title" type="hidden" name="title" class="text inputpadding required" value="Dossier" />
    <input id="url_title" type="hidden" name="url_title" class="text inputpadding required" value="dossier" />
    
    
    <h3>uploadtest</h3>
    <p>       <br />
    {field:uploaden}        </p>
    
    <p>{/exp:safecracker}

  • #8 / Feb 15, 2012 4:52pm

    Shane Eckert

    7174 posts

    Hello Kees Internet,

    I was able to reproduce this as well.

    What I suggest you do to resolve this is to add a SafeCracker File fieldtype. In the Control Panel go to Add-Ons->Field Types and then install “SafeCracker File”.

    Now go to your channel fields Admin->Channel Administration->Channel Fields and then click on the desired Channel Field Group.

    You will want to create a new Channel Field and make sure the Type is SafeCracker File.

    I say create new NOT edit or change because you want all the other existing image to still show on the front end. From now on when folks go to upload, they will use the new SafeCracker File Upload.

    The code will change a bit.

    {exp:safecracker channel="dossier" return="/dossier/overzicht" entry_id="" error_handling="inline" include_jquery="yes" id="dossierform"}
    <h3>uploadtest</h3>
    <p>  {custom_fields}<br />
        {if safecracker_file}<br />
          {display_field}<br />
        {/if}<br />
      {/custom_fields}<br />
    {/exp:safecracker}

    The documentation on the SafeCracker module is here just in case you want to read up on it. I am sure you have seen it already.

    Does this makes sense? Let me know if you need any clarification or have more questions.

    Cheers,

     

  • #9 / Feb 16, 2012 1:40am

    Est Digital

    62 posts

    Thanks Shane.

    But if i use safecracker file upload i wouldnt be able to browse existing files in thumbnail view.

  • #10 / Feb 19, 2012 2:32pm

    Sean C. Smith

    3818 posts

    Hi Kees,

    I’m copying and pasting from this thread where Dan Decker said:

    I’m afraid the standard file field isn’t intended to be used with SafeCracker, which is why there is a specific field type for SafeCracker. If you would like to see the standard file field for use with SafeCracker, please feel free to make a Feature Request. You may also want to use Pixel & Tonic’s Assets, it works well with SaceCracker.

    Hope that explains everything. Is there anything else I can assist you with?

    Sean

     

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

ExpressionEngine News!

#eecms, #events, #releases