Closed10

[React / TypeScript / Vite] まとめる前のメモなど

あざらしあざらし

めも:自動画面遷移

〇秒たったら自動遷移、みたいなやつ。useEffectをつかって秒数計算して〇秒たったらnavigateToすればOK

あざらしあざらし

ンオ やっと送れた

2024-03-18 16:26:25,582 [DEBUG   ]: Calling on_part_begin with no data -  multipart.multipart:626 (callback)
2024-03-18 16:26:25,594 [DEBUG   ]: Calling on_header_field with data[42:61] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,599 [DEBUG   ]: Calling on_header_value with data[63:107] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,600 [DEBUG   ]: Calling on_header_end with no data -  multipart.multipart:626 (callback)
2024-03-18 16:26:25,602 [DEBUG   ]: Calling on_header_field with data[109:121] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,607 [DEBUG   ]: Calling on_header_value with data[123:133] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,608 [DEBUG   ]: Calling on_header_end with no data -  multipart.multipart:626 (callback)
2024-03-18 16:26:25,613 [DEBUG   ]: Calling on_headers_finished with no data -  multipart.multipart:626 (callback)
2024-03-18 16:26:25,624 [DEBUG   ]: Calling on_part_data with data[137:1169] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,628 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,630 [DEBUG   ]: Calling on_part_data with data[1171:3270] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,643 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,646 [DEBUG   ]: Calling on_part_data with data[3272:3571] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,649 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,651 [DEBUG   ]: Calling on_part_data with data[3573:6644] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,653 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,654 [DEBUG   ]: Calling on_part_data with data[6646:7451] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,671 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,672 [DEBUG   ]: Calling on_part_data with data[7453:7460] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,673 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,675 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,679 [DEBUG   ]: Calling on_part_data with data[0:2] -  multipart.multipart:623 (callback)
2024-03-18 16:26:25,681 [DEBUG   ]: Calling on_part_end with no data -  multipart.multipart:626 (callback)
2024-03-18 16:26:25,683 [DEBUG   ]: Calling on_end with no data -  multipart.multipart:626 (callback)
[UploadFile(filename='aaaaa.vb', size=7329, headers=Headers({'content-disposition': 'form-data; name="files"; filename="aaaaa.vb"', 'content-type': 'text/plain'}))]
あざらしあざらし

送り方はformData.appendでFileの中身つっこんで入れてる。
これでずっとエラー出てた(404)だったんだけど、理由は単純にformDataの中身がなかったからだった…

(別件でこの案件から離れてたけど、ちょっと離れたほうが程よく思考が転換できてある意味けっかおーらい)

このスクラップは2024/05/21にクローズされました