//test if it's an image
if(getFileExtension(aUploadedFile)) {
OneFiletoUpload oftu = new OneFiletoUpload();
oftu.setOutputfile(destinationfile);
getManyuploadfiles().add(oftu);
FileOutputStream fos = new FileOutputStream(aUploadedFile);
int read = 0;
byte[] bytes = new byte[1024]