forms-angular / fng-jq-upload

jQuery file upload plugin for forms-angular, storing data in Mongo. Heavily influenced by Dominic Bottger's fork of BlueImp jquery-file-upload.
MIT License
1 stars 2 forks source link

Error after click "start" button #1

Closed wahono77 closed 10 years ago

wahono77 commented 10 years ago

I got error message : D:\nodejs-project\forms-angular2\node_modules\mongodb\lib\mongodb\connection\bas e.js:245 throw message; ^ Error: Illegal chunk format at Error () at new exports.Chunk (D:\nodejs-project\forms-angular2\node_modules\forms-an gular\node_modules\mongoose\node_modules\mongodb\lib\mongodb\gridfs\chunk.js:43: 11) at D:\nodejs-project\forms-angular2\node_modules\forms-angular\node_modules\ mongoose\node_modules\mongodb\lib\mongodb\gridfs\gridstore.js:593:22 at Cursor.nextObject (D:\nodejs-project\forms-angular2\node_modules\mongodb\ lib\mongodb\cursor.js:753:5) at commandHandler (D:\nodejs-project\forms-angular2\node_modules\mongodb\lib \mongodb\cursor.js:727:14) at D:\nodejs-project\forms-angular2\node_modules\mongodb\lib\mongodb\db.js:1 847:9 at Server.Base._callHandler (D:\nodejs-project\forms-angular2\node_modules\m ongodb\lib\mongodb\connection\base.js:445:41) at D:\nodejs-project\forms-angular2\node_modules\mongodb\lib\mongodb\connect ion\server.js:478:18 at MongoReply.parseBody (D:\nodejs-project\forms-angular2\node_modules\mongo db\lib\mongodb\responses\mongo_reply.js:68:5) at null. (D:\nodejs-project\forms-angular2\node_modules\mongodb\l ib\mongodb\connection\server.js:436:20)

This is form model : var ProductCategorySchema = new Schema({ Name: { type: String, required: true, index: true, list:true, form: {label: 'Product Category'} }, Description: { type: String, list:true, form: { type: 'textarea', editor: 'ckEditor', label: 'Description' } }, CategoryImage: { type: [uploadCategorySchema], list:true, form: { directive: 'fng-jq-upload-form', add:{autoUpload : false, sizeLimit : 50000000} }}, ParentCategory: { type: Schema.Types.ObjectId, ref: 'ProductCategory', list:true, form: { label: 'Parent Category', help: 'For root category, leave this field blank!' } }, Status: { type: Boolean, default: true, list:true, }, CreatedAt: { type: Date, readonly: true, default: Date.now, form: {hidden: true} } });

Thanks

wahono77 commented 10 years ago

After update all package using npm update, it's fixed. Maybe this error from another package.

After tried MeanJS, etc, I think form-angular is the best.

Thanks

mchapman commented 10 years ago

Cool. Closing your own issue is great. Closing it with a compliment - sublime! Thanks.