Ipad seems to upload images with the same name

Archived from the Transloadit support forum. Originally posted on November 17, 2013; details may be outdated, see our docs for current behavior. Original thread

Hi

I am using the following pattern for images uploaded

“path”: “media/${fields.sale_id}/lot-${fields.item_id}/${file.url_name}”,

and in most cases this is fine however I have noticed a couple of times that when people upload from an IPAD even though they upload 5 separate images the${file.url_name} evaluates to ‘image’ so i end up with only one image stored as each one overwrites the other.

unfortunately the unique_prefix param doesn’t work for me as it puts the files in separate folders so just wondering is there another way to make sure that each file uploaded has a unique name ?

cheers _dR

Hey Dave,

You could use ${file.id}

Kind regards,

Tim Koschuetzki
Co-Founder Transloadit
@tim_kos

ahh ok nice one thanks Tim

cheers _dR

Most welcome, Dave. Closing this.