Comments (16)
I think @dpankros may be working on it?
from meteor-cfs-autoform.
I am, but due to some issues, like the reactivity issue we discussed, and demands on my time, itβs taking longer than anticipated.
On January 29, 2015 at 4:51:21 PM, Eric Dobbertin ([email protected]) wrote:
I think @dpankros may be working on it?
β
Reply to this email directly or view it on GitHub.
from meteor-cfs-autoform.
@dpankros: How will the upload work for multi-file fields? Will it be possible to add and remove previously uploaded files or will the update just replace files?
For my app the first approach would be very useful. If you implement just the replace I would like to add the "add&remove" feature. What do you think?
from meteor-cfs-autoform.
@ndee I will do my best to make the updates granular so you don't have to replace all the files in a batch, unless you want to. I'm going to get to that side of it soon but I have other work to complete before I can get back to it.
Right now, the single-file version allows adding, removing and updating. I wouldn't expect it to be too much more difficult to make the multiple-file version mirror that behavior. Of course, it's possible that I run into a showstopper when I get into the code, but I hope not.
Just a warning that the new version will likely require AutoForm 5.
from meteor-cfs-autoform.
@dpankros Sounds promising! Handling of multiple files in insert and update forms will be a core feature in my app. So, I'm motivated to support you. :-)
Usage of AutoForm 5 will be no problem for me.
What recently came into my mind: How will the update work when I specify an array which contains items with file references. Like in the following example.
Will the update remove the file when I remove an array item containing a file reference?
ImageSchema = new SimpleSchema({
name: {
type: String,
label: 'Comment'
},
fileId: {
type: String,
autoform: {
afFieldInput: {
type: 'cfs-file',
collection: 'images'
}
}
}
});
MySchema = new SimpleSchema( {
name: {
type: String,
label: "Name"
},
files: {
type: [ImageSchema],
label: 'Images',
optional: true
}
});
from meteor-cfs-autoform.
"Delete on remove" is an option that you can specify in the new preferences object. If you want them to be removed, set it to true. Otherwise it will be up to you to handle the orphaned files (such as archiving them).
from meteor-cfs-autoform.
Very cool!
from meteor-cfs-autoform.
#27 I didn't get it to attach to the right issue. This is a pretty quick fix as I just copied the insert hooks to the update hooks but instead of the update I added the changes to the $set object.
This doesn't work for multiple files, however.
from meteor-cfs-autoform.
Sounds really cool, "Delete on remove" could be active by default. Any update on this part @dpankros?
:)
from meteor-cfs-autoform.
@tcastelli "Delete on Remove" is in my fork (not merged back into the main yet). I think the default behavior should be off, however, because I do not want to be the cause of data being lost accidentally. If a delete is performed, it should be a conscious decision by the developer of the app, not the package. It is simple to enable, however. E.g:
CfsAutoForm.prefs.set('deleteOnRemove', true);
This code is for the new, unreleased version. It will not work with the current version.
from meteor-cfs-autoform.
I see, seems reasonable for anyone who is considering restoring/versioning after updates. Which is the quickest way to import your fork in a project? I would like to test it since i don't need multiple updates (i guess i have to clone your repo in the package folder and add through package add right?)
from meteor-cfs-autoform.
@tcastelli Yes. That's correct. I also have a test app, if you want to try it separately or use it an example.
I feel compelled to reiterate that you should consider this alpha/beta type code and it should NOT be used in production yet. It is not fully debugged.
from meteor-cfs-autoform.
Thanks for the test app link, even if in beta stage, I don't mind trying it out and discussing about possible bugs :)
from meteor-cfs-autoform.
+1 for getting this PR'ed...
from meteor-cfs-autoform.
@dpankros test app (https://github.com/dpankros/cfs-autoform-test) is not working when I remove insecure and autopublish packages
from meteor-cfs-autoform.
The code hasn't been worked on in some time, mainly because it never not the testing it needed beyond what I and a few others had done. Because of the continued changes autoform and cfs-autoform, and not in my fork, I'm considering it all abandoned. Sorry. I don't think anyone is using it anyway.
If it's just insecure and autopublish that cause issues, have you checked the basic causes? E.g. failure to publish a collection.
from meteor-cfs-autoform.
Related Issues (20)
- How do you add a before insert hook on this?
- Update for deeply nested cfs-file's broken HOT 2
- cfs-files (the multi version) does not work HOT 2
- Customize the ui "field" for multiple files
- this.template is undefined when before hook is a function HOT 1
- Exception in delivering result of invoking 'myServerMethod': Error: [[object Object]]
- file upload not working in IOS simulator
- Before hooks not work
- CfsAutoForm.Hooks.beforeInsert() is called, but after my Meteor.call() to save the form HOT 3
- Not a valid enum value HOT 1
- Error on the exemple code
- File Validation
- How to add an image preview to the update page? HOT 1
- how to display images of a array?
- Validation bug
- How to restrict file type?
- AutoForm 6.0 support. HOT 2
- How to subscribe cfs-files
- Incompatiple when adding cfs:autoform
- update form!!!
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 meteor-cfs-autoform.