Comments (2)
This fix worked perfectly, thanks @i-just! 🍺
doublesecretagency/craft-digitaldownload@7d1328b
from cms.
Hi, thanks for the detailed explanation!
This is expected behaviour. The uploads
directory is a subpath of a Volume
, and it does not affect the characteristics of a VolumeFolder
. In other words, the VolumeFolder
's path is (still) relative to the Volume
, and it’s the Volume
's base path that contains uploads
, not the VolumeFolder
's.
To achieve what you’re after, you need to throw in Volume
's subpath into the mix:
$volPath = $volume->getSubpath();
,
and concatenate that into your $filepath
:
$fsPath.$volPath.$folderPath
.
I hope this makes sense and clears things up!
I’ll close this now, but feel free to reply if you have any further questions.
from cms.
Related Issues (20)
- [4.x]: User activation email and other user emails get overwritten by Contact Form plugin HOT 1
- [5.x]: Server error on Element overview pages HOT 10
- [5.x]: Fields with "-" char in handle make everything crash HOT 2
- [5.x]: SORT_LOCALE_STRING not working out of the box HOT 1
- [5.0.0-beta.4]: Editing nested elements causes JS violation / Forced reflows HOT 5
- [5.x]: Conditional fields returns to me 403 error HOT 5
- [5.x]: Element indexes with long element titles do not wrap, lowering index usability with horizontal scrolling HOT 1
- [5.x]: Long author name display bug HOT 2
- [4.8.0]: FS JS not loaded in slideout HOT 1
- [5.x]: GraphQL errors are pretty lean on details HOT 1
- [4.x]: Creating/saving section: Getting unknown property: craft\events\SectionEvent::element HOT 1
- [5.x]: Enhancement: HOT 1
- [5.x]: Assets field with handle 'images' not displaying within Matrix field HOT 3
- [4.8.0]: License for public development urls HOT 4
- [5.x]: Conditional fields within a matrix block layout don't function correctly HOT 4
- [4.x]: Unable to Upgrade Plugins in Craft CMS 4.8.0 HOT 8
- [5.x]: Translatable fields in newly added matrix blocks not propagated after save/site switch HOT 2
- [5.x]: No longer able to log in to control panel when using custom baseCpUrl HOT 2
- [4.x]: Category created through modal is not immediately searchable HOT 1
- [5.0.0-beta.6]: Global header overflows on mobile HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cms.