I want to upload images to the server but how to rename them so they not be identical ?
in the server its saved image_upload.jpg
in this php code I rename the file
$base=$_POST['image'];
$binary=base64_decode($base);
header('Content-Type: bitmap; charset=utf-8');
$file = fopen('uploaded_images.jpg', 'wb'); // here I am naming it
I am thinking in java to add the time upload it in milliseconds ... like image_upload3123.jpg
with this
Calendar thisCal = Calendar.getInstance();
thisCal.getTimeInMillis();
then send the value send it to server .. is this good way? or there is better way?