goeh / grails-attachmentable Goto Github PK
View Code? Open in Web Editor NEWGrails Attachmentable Plugin
License: Other
Grails Attachmentable Plugin
License: Other
Hello, there is maximum number of file/folder limit for uploadDir in OS. http://stackoverflow.com/questions/466521/how-many-files-can-i-put-in-a-directory
grails.attachmentable.uploadDir = YOUR_USER_HOME/APP_NAME
After more attachments uploadDir exceeds maximum count.
Now folder structure is [uploadDir]/[attachment_link.reference_class]/[attachment_link.reference_id]/[attachment.id]+[attachment.ext]
Maybe folder structure must be change or add some feature like group by date or sequence.
Thanks,
I get this error when I run the plugin with grails 2.5.3, it seems to conflict with elasticsearch plugin, but elasticsearch was working fine, but after I added attachmentable the app stopped running with this error in console:
.Error | Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.NoClassDefFoundError: Unable to load class org.elasticsearch.common.xcontent.XContentBuilder due to missing dependency org/apache/lucene/util/BytesRef (Use --stacktrace to see the full trace)
the configuration stuff has change in 2.3, and this plugin no longer works out of the box. any plans to update it for grails 2.3/4 and/or/grails 3?
When uploading a hidden file from a UNIX system -- that is, a file that starts with a dot (.
) -- an exception is thrown from within AttachmentableService
.
The Exception is caused by an invalid instance of the type Attachmentable
: The file name is missing. Apache Commons FilenameUtils
is used by AttachmentableService to retrieve the basename of the file. Unfortunately, this does not work for hidden files; getBaseName
just returns an empty String, because it thinks the dot introduces the file extension.
If there is a workaround for this issue, I will be happy to use it.
Hi,
I'm trying to update an older Grails/Groovy application that we have but I'm having problems with both the .Attachment and .Attachmentable classes. Both report as unable to resolve the class.
It's currently defined in our build.gradle as:
implementation ("org.grails.plugins:attachmentable:0.4.2") {
exclude module: 'xml-apis'
}
Would anyone be able to help me to find out why this is giving me problems?
Hi, im running multiple instance of server so is there any way i can put attachments files on remote directory or Db so whichever server serve the request can get files from remote directory or Db
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.