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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T20:42:40+00:00 2026-05-15T20:42:40+00:00

Is anybody else using David Persson’s media plugin for CakePHP ? I’m struggling with

  • 0

Is anybody else using David Persson’s media plugin for CakePHP? I’m struggling with setting up some features of the latest version. I’d like to set it up to make a UUID-based filename for uploaded images, but I’m not sure how to go about it.

I will fight with it some more, but I’m posting to find out if anybody here can tell me if the 1.3 is generally working or generally NOT working.

  • 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-15T20:42:41+00:00Added an answer on May 15, 2026 at 8:42 pm

    Finally got this (partially) working. The UUID filename stuff works when I place the following code in my Attachment model:

    function transferTo($via, $from) {
        extract($from);
        $irregular = array(
            'image' => 'img',
            'text' => 'txt'
        );
        $name = Mime_Type::guessName($mimeType ? $mimeType : $file);
        if (isset($irregular[$name])) {
            $short = $irregular[$name];
        } else {
            $short = substr($name, 0, 3);
        }
        $path  = $short . DS;
        $path .= String::uuid();
        $path .= !empty($extension) ? '.' . strtolower($extension) : null;
        return $path;
    }
    

    I’m still having some trouble with other parts of the Media Helper, but the author posted some updates to his git repository today (Jul 17 2010).

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

Sidebar

Related Questions

I wonder if anybody else is having this issue. I'm using Firefox 4 and
So I'm using Play 2 in Scala, setting up some dependencies, and I think
Has anybody else noticed that Bindings with ElementName do not resolve correctly for MenuItem
Anybody know of a way to batch NHibernate queries using NHibernate.Linq like you can
Has anybody else had issues where Intellij 9 forgets what libraries you added to
I was just wondering if anybody else has had the same problem as me.
I am using PHP to connect to apn s to send some notifications to
I have a very big problem and can't seem to find anybody else on
This is for an assignment. If anybody else who is doing this assignment finds
I'm currently using the anythingSlider plugin, it works totally fine except when there is

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.