The returned file basename is not correct

Started by antonygraemecox7 replies22 views
antonygraemecoxOriginal post
#1

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.

tim-kos
#2

Hey,

What is the assembly id where this happened?

Kind regards,

Tim Koschuetzki
Co-Founder Transloadit
@tim_kos

antonygraemecox
#3
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"
tim-kos
#4

No I mean the assembly id. 🙂

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

antonygraemecox
#5

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

tim-kos
#6

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?

antonygraemecox
#7

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

tim-kos
#8

It should be fixed now - can you please confirm?