Can you use part of filename in attribute of a type?

#1

How can you, when uploading a file, use a part of the filename and allocate it to a attribute of the c3type?

example:

I have a measurement.c3typ
with a measurementPoint as string attribute (plus some other attributes).
The file to upload contains the measurementPoint in the titel: EL-P0044-16.csv.
How can I set P0044 in the measurementPoint?
And so for EL-P0045-16.csv, and other.

Kr,
Tom

#2

From the canonical transform, it is not possible to access the name of the file uploaded. So assigning parts of the file name to some attribute of a target type is not possible.