質問編集履歴

3

JSコード修正

2021/04/02 10:54

投稿

fuyukixxx
fuyukixxx

スコア26

test CHANGED
File without changes
test CHANGED
@@ -110,7 +110,7 @@
110
110
 
111
111
  postForm.set('title', '上書きしたい値');
112
112
 
113
- postForm.set('sound',sliceData)
113
+ postForm.set('sound',sliceData,'audio')
114
114
 
115
115
 
116
116
 

2

JSコード修正

2021/04/02 10:54

投稿

fuyukixxx
fuyukixxx

スコア26

test CHANGED
File without changes
test CHANGED
@@ -100,9 +100,11 @@
100
100
 
101
101
 
102
102
 
103
- submit.addEventListener('click', () => {
103
+ submit.addEventListener('click', (e) => {
104
104
 
105
+ e.prevantDefault();
106
+
105
- postForm = new FormData(document.forms.upload_form);
107
+ postForm = new FormData(document.forms.upload_form);
106
108
 
107
109
  const sliceData = new Blob([data.buffer], {type: "audio/wav"});
108
110
 

1

コードが反映されない

2021/04/02 10:51

投稿

fuyukixxx
fuyukixxx

スコア26

test CHANGED
File without changes
test CHANGED
@@ -21,8 +21,6 @@
21
21
  </form>
22
22
 
23
23
  ```
24
-
25
-
26
24
 
27
25
  ```JS
28
26