Change image filetype on upload?


Posted on 16th Feb 2014 07:03 pm by admin

Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image type during the upload?

I want the user to be able to upload images that are .gif .jpg or .png, but when uploaded, if they are .gif or .jpg, have been changed to .png.

Is this possible?

282 Like 38 Dislike
Previous php-forum Next php-forum
Other php-forum

Setting/Modify Headers using mail() function
I have a question about setting email headers when using mail() in a php script.

When I send

xml
<?php

echo "<h1>XML Articles</h1>";

$home

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Generate multilayered array from string.
ok so i have a string that looks like this:
Code: [Select]blog:edit_all,delete_all|users:edit_all

file downloaded can't be read !!
<?php
$fileName = 'mypic.jpg';
$mimeType = 'image/jpeg';
header('content-dispositio

Hashing?
Hi, I was hoping to take a string value then convert it - consistently - across each of our pages in

If statement help please.
Hello on my site I have 2 content boxes. 1 is for the main content (which is the biggest one) and th

problem when runing a funciton
I am trying to connect to database using a funciton in a functions.php

<?php
funct

gmmktime or mktime
I live in the UK, i am within the GMT (with daylight saving time ie 1 hour difrence between summer a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash