Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: File upload breaks on MSM

Status Resolved
Add-on / Version Bloqs 3.13
Severity
EE Version 3.5.6

KeesTM

Jul 14, 2017

Description:
I have Bloqs installed on a website that also has MSM on it.
Both sites have a different file upload directory pointing to the same server directory.
When i edit a bloqs field on 1 site i get to choose the file directories of that site and it works, but when i switch back to the other site the bloqs field is broken since it’s looking for the directory ID of the other site.
Is there a way you can make the bloqs settings site specific?


Detailed steps to reproduce the issue:
1. Create file upload directory on site 1
2. Create bloqs file upload field and set directory to the one that is created
3. Create upload directory on site 2
4. Edit bloqs field to point to Site 2 directory
5. Site 1 can no longer upload files

#1

BoldMinded (Brian)

Its going to be a few days before I can look into this one. Thanks for the report though.

#2

BoldMinded (Brian)

I’m not entirely sure this is a Bloqs issue. I don’t have an MSM site setup yet to test, but looking through the codebase I’m not finding any instances of it needing to do anything special for the file fieldtype (or any other fieldtype other than relationships). Can you do the same thing with a Grid field and see if it exhibits similar behavior?

#3

Est Digital

Hi,

I think i know what the issue is, but i’m not sure i can fix this in my end. The Bloqs settings for an img field in the Database look like this:

{”field_content_type”:”image”,”allowed_directories”:”14”,”show_existing”:”y”,”num_existing”:”50”,”field_fmt”:”none”,”col_required”:”n”,”col_search”:”n”}

The problem is coming from this setting: “allowed_directories”:”14”

On one site the file folder is “11”, so when i save bloqs on those settings it is working as intended, but when i go to the english site it is looking for a file directory 11 which does not exist there since it’s id is 14 there. Is there a way to save the bloqs setting per site ID?

#4

BoldMinded (Brian)

It looks like blocks are site specific, but atoms are not. Maybe try creating a new block for site #2, with its own atoms that are specific to that block that has its own config. So…

Block for site #1 - File field atom #1

Block for site #2 - File field atom #2

#5

BoldMinded (Brian)

I’m closing this b/c I have not heard back in over a month. I assume my suggestion worked or you found a work around.

Login to reply