Comments (8)
as a point of contrast. I have it working successfully. here is the field definition that I am using in my entries.yaml
photo:
type: file
label: Photo
multiple: false
destination: 'user/pages/images'
accept:
- image/*
from grav-plugin-flex-directory.
@Flibio what kinds of files are you trying to upload? The default is for images only unless you specify an accept:
option.
from grav-plugin-flex-directory.
@rhukster: I attempted to upload a JPG file.
from grav-plugin-flex-directory.
can you try removing random_name
to see if It makes any diff?
from grav-plugin-flex-directory.
That seems to have fixed it, thanks.
from grav-plugin-flex-directory.
It's weird though because I have tested that random filename stuff on my local and it worked fine. file is totally saved, of course the filename is random, so you have to iterate over the files and grab the name to use it.
from grav-plugin-flex-directory.
I just tested with random name and it works fine: my example config:
custom_file:
type: file
label: Custom File
random_name: true
destination: 'user/data/flex-directory/assets'
multiple: true
This is how it looks after save. Notice I have random filenames showing there after save.
from grav-plugin-flex-directory.
It actually seems to be working now, albeit with a different file. Perhaps the file was too large (3MB), would this plugin display an error if that was the case?
from grav-plugin-flex-directory.
Related Issues (20)
- improve workflow HOT 2
- File uploads incompatible with avoid_overwriting: true HOT 2
- Updating of a plugin was erasing my `entries.json` and reset blueprint HOT 2
- Can't get editor to work as form field type HOT 6
- Flex directory - File Field vs json file HOT 1
- some gantry5 links for editing settings cause Server Error HOT 1
- Conflict with Email plugin
- Custom form with textarea editor field HOT 4
- Retrive file link after file upload HOT 4
- How to setup flex-directory for multiple collections of entries HOT 12
- Two instances of grav-plugin-flex-directory
- can save a field named "task"
- Access for groups HOT 6
- how to get data from nested subfields in json managed by the Grav list formfield
- Editor doesn't work properly
- Adding action not work with semicolon separator
- Delete entry issues HOT 1
- flex-directory-cols.html.twig or site.html.twig HOT 1
- Error using `file` type of field HOT 4
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 grav-plugin-flex-directory.