我无法从表单上载多个图像。我在做什么:
HTML
p <- ggplot(for_plots, aes(x = factor(condition), y = conflict, fill = smoking_status)) +
stat_summary(aes(pattern=smoking_status),
fun = "mean", position = "dodge",
geom = "bar_pattern", pattern_fill="black", colour="black") + #edited part
theme_classic() +
scale_fill_manual(labels = c("Smokers", "Ex"),
values = c("blue", "gold"), guide = "legend", (title = "Smoking status")) +
scale_color_manual(labels = c("Smokers", "Ex"),
values = c("blue", "gold"), guide = "legend", (title = "Smoking status")) +
labs(x = 'Condition', y = 'Conflict (AUC)') +
scale_pattern_manual(values=c("none", "stripe"))+ #edited part
scale_x_discrete(labels = c('Animal','Smoking')) +
coord_cartesian(ylim=c(0,1.5)) +
scale_y_continuous(expand = c(0,0))
p +
stat_summary(fun.data = mean_se, geom = "errorbar", width = .08, position = position_dodge(0.9))
TYPESCRIPT
<div class="image-upload-wrap">
<input class="file-upload-input form-control" name="photos" (change)="handleAlbumPhoto($event.target.files)" [(ngModel)]="albums.photo" type='file' accept="image/png,image/jpeg,image/heic" multiple />
</div>
LARAVEL
handleAlbumPhoto(files : FileList) {
console.log(files);
this.album_photos = files;
}
if(this.album_photos !== null && this.album_photos !== undefined ) {
form.value['photos'] = this.album_photos;
}
return $request->all(); // it returns as