is it possible to get Image filename and path, type (jpg,png etc) and file size(in bytes)?

In fact I need the same data that you get from an image upload form, but I need to retrieve them from already saved images using magento uploader.


Below code is useful for you

$uploader = new Varien_File_Uploader(
    'name' => $_FILES['images']['name'][$key],
    'type' => $_FILES['images']['type'][$key],
    'tmp_name' => $_FILES['images']['tmp_name'][$key],
    'error' => $_FILES['images']['error'][$key],
    'size' => $_FILES['images']['size'][$key]
  • in fact I need to get those exact fields for a file already store using uploader
    – zto zto
    Mar 23 '16 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.