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 7916689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:53:55+00:00 2026-06-03T14:53:55+00:00

Is there somewhere a full example of working atk4.2 filestore example code? I’ve been

  • 0

Is there somewhere a full example of working atk4.2 filestore example code?

I’ve been searching in docs and stackoverflow and the few examples I have found just aren’t working for me.

Do I need to extend Model_File or Model_Filestore_File ?

First gives me error

Class is not defined in file

Second one gives

Unable to include filestore/lib/Model/Filestore/File.php

What would be the simplest way to add file upload to CRUD?

  • 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-06-03T14:53:56+00:00Added an answer on June 3, 2026 at 2:53 pm

    If you want to have file upload, use the following in your model:

    $this->add('filestore/Field_File','file_id');
    

    the field should reference filestore_file.id. If you are looking to have a image upload with thumbnail, then:

    $this->add('filestore/Field_Image','picture_id');
    

    Once image is uploaded and form is submitted, the “id” of the file will be in respective field. For Field_Image it will also resize the thumbnail. You can further customize this by using your own image model:

        ->setModel('MyImage');
    
    class Model_MyImage extends filestore\Model_Image {
        public $default_thumb_width=32;
        public $default_thumb_height=32;
    }
    

    This should work fine with 4.2.0, but the “development” branch is currently having some refinements which would allow to have multiple thumbnail sizes per image.

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

Sidebar

Related Questions

I'm using .net. Is there some code somewhere that can change $11,456.50 -> eleven
Is there a multiple instances pattern in F# somewhere? Consider that I'm working on
I'm working with SQL trying to implement a Full-Text-Search. I noticed that there is
Is there somewhere that I can get a definitive list of what is and
Is there (somewhere) a command-line program for Windows which will create PNG/JPEG visual from
Folks, is there somewhere on the Net where I can find a list of
I remember seeing somewhere there ^ operator is used as a pointer operator in
Is there an article somewhere explaining exactly how the route matching works and what
I'm using google chrome, is there some setting somewhere I can change?
Is there a log4net version built against Silverlight somewhere? Failing that, can someone suggest

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.