0

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.

1 Answer 1

0

Below code is useful for you

$uploader = new Varien_File_Uploader(
        array(
    '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]
        )
);
1
  • in fact I need to get those exact fields for a file already store using uploader
    – zto zto
    Mar 23, 2016 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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