The returned file basename is not correct

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

If I upload a file with spaces, as expected, transloadit replaces the spaces with hyphens. However, it doesn’t return the modified filename, it is still the original format. This means that I am saving the wrong filename in my database. Do I have to do something to my template definition for the modified filename to be returned?

Thanks for your help.

Hey,

What is the assembly id where this happened?

Kind regards,

Tim Koschuetzki
Co-Founder Transloadit
@tim_kos

basename: "Carpal Tunnel Lo Res"
ext: "png"
field: "userImages[imageFile]"
id: "REDACTED"
meta: Object
aperture: null
aspect_ratio: 1
city: null
country: null
country_code: null
date_file_created: "2013/11/17 16:40:14 GMT"
date_file_modified: "2013/11/17 16:40:14 GMT"
date_recorded: null
description: null
device_name: null
device_software: null
device_vendor: null
exposure_compensation: null
exposure_mode: null
exposure_time: null
f_number: null
flash: null
focal_length: null
frame_count: 1
height: 90
iso: null
keywords: null
latitude: null
light_value: null
location: null
longitude: null
metering_mode: null
orientation: null
shutter_speed: null
state: null
title: null
white_balance: null
width: 90
__proto__: Object
mime: "image/png"
name: "Carpal Tunnel Lo Res.png"
original_basename: "Carpal Tunnel Lo Res"
original_id: "REDACTED"
size: 5553
type: "image"

No I mean the assembly id. :slight_smile:

When you go to https://transloadit.com/assemblies (you need to be logged in), which is the one where the problem occurred?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Oh sorry. REDACTED is one of them. I have many if that’s not much help.

So you mean the file is saved with spaces-replaced-by-hyphens in Amazon S3, but you would like to have that in the result json as well, where it still contains spaces?

That’s exactly what I mean. Whatever transloadit changes it to should be returned I would have thought.

It should be fixed now - can you please confirm?