Welcome Guest, Not a member yet? Register   Sign In
Edit Uploaded image and edit the image file name
#2

[eluser]InsiteFX[/eluser]
Code:
$data = $this->upload->data();

// array data contains
Array
(
    [file_name]    => mypic.jpg
    [file_type]    => image/jpeg
    [file_path]    => /path/to/your/upload/
    [full_path]    => /path/to/your/upload/jpg.jpg
    [raw_name]     => mypic
    [orig_name]    => mypic.jpg
    [client_name]  => mypic.jpg
    [file_ext]     => .jpg
    [file_size]    => 22.2
    [is_image]     => 1
    [image_width]  => 800
    [image_height] => 600
    [image_type]   => jpeg
    [image_size_str] => width="800" height="200"
)

If you take a look at the ./system/libraries/upload.php you will see that all the variables are public so you can change the ones you need to.

But on a upload everything is stored in a $_FILES[$field] array.



Messages In This Thread
Edit Uploaded image and edit the image file name - by El Forum - 09-20-2014, 03:01 PM
Edit Uploaded image and edit the image file name - by El Forum - 09-20-2014, 07:46 PM
Edit Uploaded image and edit the image file name - by El Forum - 09-21-2014, 04:24 AM
Edit Uploaded image and edit the image file name - by El Forum - 09-21-2014, 01:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB