Merge branch 'thierry' of ssh://git.marbelium.com:10023/Viiciouss/Sup_File into anis

anis
Viiciouss 6 years ago
commit a3a91f0e4b

@ -29,6 +29,10 @@ var FileMongoShema = new Schema({
owner: {
type: String,
unique: false
},
lastDate: {
type: String,
unique: false
}
});

@ -1,16 +0,0 @@
https://daphni.com/
https://www.kimaventures.com/
https://www.ventechvc.com/
https://www.accel.com/
https://www.balderton.com/
https://www.alven.co/
http://www.korelyacapital.com/
https://partechpartners.com/
http://www.isai.fr/
https://newfundcap.com/
http://www.elaia.com/
http://www.exponcapital.com/
https://www.serenacapital.com/
http://aglaeventures.com/
http://aster.com/
http://www.axeleo.com/

@ -74,11 +74,13 @@ export class BookComponent implements OnInit, OnDestroy {
//console.log('mothafukaaaaaaaaaaa : ' + JSON.stringify(this.currentUser));
//console.log('mothafukaaaaaaaaaaa : ' + this.currentUser._id);
console.log('avaaaaanttttt : ' + this.currentUser.username.toString() + ' ---- ' + this.currentUser._id.toString());
if(this.currentUser.username)
this.http.post('api/uploadFileMongo', { name: result[0].filename.toString(), path: result[0].path.toString(), extention: this.filesToUpload[0].type.toString(), taille: this.filesToUpload[0].size.toString(), idUser: this.currentUser._id.toString(), owner: this.currentUser.username.toString() }).subscribe(resp => {
console.log('lastModifiedDateee : ' + this.filesToUpload[0].lastModifiedDate.toString());
// if(this.currentUser.username)
this.http.post('api/uploadFileMongo', { name: result[0].filename.toString(), path: result[0].path.toString(), extention: this.filesToUpload[0].type.toString(), taille: this.filesToUpload[0].size.toString(), idUser: this.currentUser._id.toString(), owner: this.currentUser.username.toString(), lastDate: this.filesToUpload[0].lastModifiedDate.toString() }).subscribe(resp => {
console.log('ok db !!' + resp.toString());
this.getfile();
this.filesToUpload = null;
this.fileChooseName = 'None';
}, err => {
console.log('errrrr : ' + err);
message = err.error.msg;

Loading…
Cancel
Save