Problem/Motivation

- Allow file upload.

- Be able to retrieve a syncable object.

- Be able to use the entity reference formatter on file fields.

Comments

dakwamine created an issue. See original summary.

  • d1942707 committed on 2.x
    feat: #3577607 Allow file upload through decoupled endpoints + better...
dakwamine’s picture

Also added the FileUriDecoupledFormatter to format file_uri field as url.

  protected function viewFieldItem(FieldItemInterface $item, ?CacheableMetadata $collectedCacheableMetadata = NULL) {
    return $this->fileUrlGenerator->generateAbsoluteString($item->value);
  }
dakwamine’s picture

Status: Active » Reviewed & tested by the community
dakwamine’s picture

Status: Reviewed & tested by the community » Fixed

To release.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.