Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4619746
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:27:58+00:00 2026-05-22T02:27:58+00:00

Hey there, I’m using the tutorial at http://www.jamesfairhurst.co.uk/posts/view/uploading_files_and_images_with_cakephp to try to get myself up

  • 0

Hey there, I’m using the tutorial at http://www.jamesfairhurst.co.uk/posts/view/uploading_files_and_images_with_cakephp to try to get myself up and running with the ability to upload images.

Now, I’m very new, and really haven’t a clue so this is probably the most stupid question in the world but I don’t know whats going on.

Basically I follow the tutorial as best I can but when I load the page which is supposed to have the input for the image I get the rest of the form but then get 2 errors:
Method FormHelper::labelTag does not exist
and
Method HtmlHelper::file does not exist

I’ve searched but only got more confused. There is something I’m meant to include that i’ve missed isn’t there?

confused…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:27:59+00:00Added an answer on May 22, 2026 at 2:27 am

    I assume you’ve put the uploadFiles function in to your APP/app_controller.php

    You would do something like this in your add action, for instance:

    $fileData = $this->uploadFiles('img/uploads', $this->data['File']);
    print_r($fileData);
    

    What version of Cake are you using? That tutorial is quite old, and whilst the upload functionality still works fine, the labelTag and File methods are now deprecated (as of 1.3 I think). you should use:

    echo $this->Form->label('image', 'Image');
    echo $this->Form->file('File.image');
    

    instead, and you should be good to go.

    edit
    You can also just use
    echo $this->Form->input('File.range_image', array('type'=>'file'));

    as if I recall, that’s the preferred way ~

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hey there i'm using mysql in hebrew , but when i try to preview
Hey there, I've got a block of HTML that I'm going to be using
Hey there, I am trying to get my signout button to work. This is
Hey there, Now im working this base on dmitko tutorial on extending django-registration post
Hey there, In class we're using the Scite editor with gcc and its a
Hey there, I have read the few posts here on when/how to use the
Hey there, So I've been heavily focused on design/development using web technology for the
Hey there, i have one question.. i try to write an android app with
hey there, i have written a custom control for my App so things get
Hey there I'm wondering how this is done as when I try the following

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.