This question is locked. New answers and comments are not allowed.
Hello,
What is the FieldName argument in the FileField class used for, please? The documentation doesn't mention it, as far as I have seen. I'm uploading image files thus:
I don't see any difference leaving the FieldName field empty or plugging it with a dummy string.
The reason I ask, is I'm looking for a way to add a reference count to each uploaded file, so that I can delete the file after n-users have finished with it. The Files content type doesn't allow supplementing with new fields. I was hoping that FieldName argument might store a retrievable value somewhere... Any ideas besides adding another intermediate content type?
Thank you,
Kelly
What is the FieldName argument in the FileField class used for, please? The documentation doesn't mention it, as far as I have seen. I'm uploading image files thus:
var fileField =
new
FileField(
""
, info.Filename,
"image/jpeg"
, stream);
CreateResultItem uid = _theApp.WorkWith().Files().Upload(fileField).ExecuteSync();
I don't see any difference leaving the FieldName field empty or plugging it with a dummy string.
The reason I ask, is I'm looking for a way to add a reference count to each uploaded file, so that I can delete the file after n-users have finished with it. The Files content type doesn't allow supplementing with new fields. I was hoping that FieldName argument might store a retrievable value somewhere... Any ideas besides adding another intermediate content type?
Thank you,
Kelly