|
|
@@ -108,15 +108,6 @@ public class CourseWareServiceImpl implements CourseWareService {
|
|
|
public String uploadCourseWareFile(String name, MultipartFile file) {
|
|
|
try {
|
|
|
System.out.println("upload");
|
|
|
-// if (name.substring(name.indexOf(".")).equals(".ppt")) {
|
|
|
-// OutputStream pdfFile = null;
|
|
|
-// FileOutputStream fileOutputStream = new FileOutputStream(name.substring(0, name.indexOf(".")) + ".pdf");
|
|
|
-// pptToPdf(file.getInputStream(), fileOutputStream);
|
|
|
-// ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream();
|
|
|
-//
|
|
|
-// String courseWareUrl = ossUtil.upload(name, );
|
|
|
-//
|
|
|
-// }
|
|
|
String courseWareUrl = ossUtil.upload(name, file.getInputStream());
|
|
|
System.out.println(courseWareUrl);
|
|
|
return courseWareUrl;
|