Add support to attach a file to a field with file id

Because we are uploading files via the API of "file-upload" end-point, we are receiving the file ID,
so we need to attach a file into a file field with the file id that recieved.