问题描述
情况如下:
- 在用于创建作品集的页面上,用户选择其作品的文件(图像)(10件)。
- 向服务器发送POST请求,将其保存在服务器上
- 然后用户要编辑简历,打开编辑页面,我们将在其中显示以前上传的图像。
- 用户删除了两个图像(通过删除HTML块),添加了三个图像(通过添加HTML块)
- 提交表单时,我在服务器上只得到三个新文件。
如何获取表单上剩余的所有文件的列表?在function recordHistory() {
try{
var ss = SpreadsheetApp.getActiveSpreadsheet();
}catch(e){
var ss = SpreadsheetApp.open('xxx');
}
SpreadsheetApp.flush();
var sourceSheet = ss.getSheetByName("Overview");
var sourceValues = sourceSheet.getRange("B4:C8").getValues();
var destinationSheet = ss.getSheetByName("History");
var destinationheading = destinationSheet.getRange("A1:F1").getValues();
sourceValues.push(new Array("Date",Utilities.formatDate(new Date(),"GMT+2","yyyy/MM/dd")));
Logger.log("sourceValues: " + sourceValues);
Logger.log("sourceValues.length: " + sourceValues.length);
Logger.log("destinationheading: " + destinationheading);
Logger.log("destinationheading.length: " + destinationheading.length);
var sortedDestinationValues = new Array();
destinationheading[0].forEach( function (heading) {
Logger.log("destinationheading heading: " + heading);
sourceValues.forEach( function (value) {
Logger.log("sourceValues value " + value[0] + ": " + value[1]);
if (value[0] == heading) {
sortedDestinationValues.push(value[1]);
}
});
});
Logger.log("newDestinationValues: " + sortedDestinationValues);
destinationSheet.appendRow(sortedDestinationValues);
};
中写什么以将这些文件存储在服务器上?我将图像输出到input value
,但是它们没有传输到服务器。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)