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

  • Home
  • SEARCH
  • 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 7875093
In Process

The Archive Base Latest Questions

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

How can I upload a transparent PNG (and preserve this transparency) using Meioupload in

  • 0

How can I upload a transparent PNG (and preserve this transparency) using Meioupload in CakePHP?

Thanks

  • 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-03T02:55:32+00:00Added an answer on June 3, 2026 at 2:55 am

    I’m having the same problem. This is what fixed it for me:

    Around line 962 of MeioUploadBehaviour.php, there are 2 lines:

    $imageArray = explode(".", $source);
    $phpThumb->config_output_format = $imageArray[1];
    

    Change the second line to:

    $phpThumb->config_output_format = end($imageArray);
    

    EXPLANATION: The original line is an attempt to set $phpThumb->config_output_format to the file extension of your uploaded image. It works, so long as there is only one ‘.’ in the file path of your uploaded image. Eg., if your path is /mywebsite/images/myImage.png, then it gets ‘png’.

    But, if there’s a ‘.’ earlier in your $source, eg. /mywebsite.com/images/myImage.png then what you get returned is the middle part, from the first ‘.’ to the second ‘.’

    So you’d get something like: ‘com/images/myImage’

    Of course, ‘com/images/myImage’ isn’t a valid config_output_format for phpThumb!

    By making the change from $imageArray[1] to end($imageArray), you always get the last element of the image array, which should always be the file extension.

    Really, this enhancement should be made permenantly in MeioUpload. EDIT: I’ve forked MeioUpload and made the fix. I’ve sent a pull request to jrbasso, but so far it hasn’t been accepted. You can view my fork here: https://github.com/joshuapaling/MeioUpload

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

Sidebar

Related Questions

I want to let a user upload a PNG-file with alpha transparency and have
I can upload file in MVC3 (C#) by using HttpPostedFileBase but i want to
A user can upload a picture on my site at which point jQuery inserts
In one of my applications a user can upload images and archives (ZIP, RAR).
We have a CMS where people can upload images. We currently don't offer a
As part of a web application users can upload files of data, which generates
I have a form where the user can upload a zip file, it works
I have a system where employees can upload files. There are three ways Upload
I have a page where a user can upload a file along with some
Possible Duplicate: how to upload folder with php I know we can upload single

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.