Guest User

Untitled

a guest
Nov 12th, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. files: File[];
  2. variantData: FormData;
  3. for (let i = 0; i < this.files.length; i++) {
  4. variantData.append('photos', this.files[i], this.files[i]['name']);
  5. }
  6.  
  7. [
  8. [ File, File, File ],
  9. [ File ]
  10. ]
  11.  
  12. this.productGroup = this.fb.group({
  13. photosList: this.fb.array([
  14. this.fb.group({
  15. option: '',
  16. photos: ''
  17. })
  18. ])
  19. })
  20.  
  21. options = { 'Red, 'Blue', 'Yellow' };
  22. photos = [ ['imageRed1, 'imageRed2'], ['imageBlue1'], ['imageYellow1'] ];
  23.  
  24. const productSchema = mongoose.Schema({
  25. photos: [
  26. {
  27. option: String,
  28. photos: [String]
  29. }
  30. ]
  31. });
Add Comment
Please, Sign In to add comment