Once uploaded a file using File Browser the file is been saved to the default folder even if separate File directory destination is given in the field settings

Comments

sajiniantony created an issue. See original summary.

samuel.mortenson’s picture

Project: File Entity Browser » DropzoneJS

Thanks for the report @sajiniantony - the uploading functionality of this module is actually provided by DropzoneJS, so I'm going to move this issue to that queue.

Primsi’s picture

If by field settings you mean settings on the file field on the entity, that's by design with Entity Browser. It's confusing I agree, but Entity Browser is still in development and this will be addressed sooner or later.

Now to solve your problem: to set a different upload location, you need to set this on the entity browser side. For now you need to change the Entity Browser's yml file manually, but the config form for the widget is being implemented - see #2671914: Implement EB configuration UI.

Primsi’s picture

Category: Feature request » Support request
sajiniantony’s picture

@Primsi
Infact I am using File Entity Browser as well.So without creating a new Entity Browser I used the the default Entity Bowser supplied by the File Entity Browser module.
I tried to get the upload location in the Entity Browser module.But no luck so far.Please advice.

Primsi’s picture

As stated above #2671914 needs to get to have a UI to configure this.

If you want to change this now, you need to update entity_browser.browser.nameofthebrowser.yml The yml structure should look like:

  81437af9-e9ef-494d-9662-c859c9739f53:
    settings:
      media_entity_bundle: photo
      upload_location: 'public://' <-- you need to change this
      dropzone_description: 'Drop files here to upload'
      extensions: 'jpg jpeg gif png'
      max_filesize: 2M
    uuid: 81437af9-e9ef-494d-9662-c859c9739f53
    weight: 0
    label: 'Upload photos'
    id: dropzonejs_media_entity

This is ugly, but until the mentioned ticket gets review this is the only way to do it.

sajiniantony’s picture

Thanks for the reply.

Primsi’s picture

Status: Active » Fixed

Closing as fixed. Reopen if needed.

Status: Fixed » Closed (fixed)

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