feature: file uploads and audio embedding
This commit is contained in:
		
							parent
							
								
									2224e1abe0
								
							
						
					
					
						commit
						4c0a8bb700
					
				
					 7 changed files with 105 additions and 22 deletions
				
			
		|  | @ -136,7 +136,7 @@ | |||
| 						const body = new FormData(); | ||||
| 						body.append("file", avatar, encodeURIComponent(avatar.name)); | ||||
| 
 | ||||
| 						const avatar_path = `/files/users/${user.id}/avatars/${avatar.name}`; | ||||
| 						const avatar_path = `/files/users/${user.id}/avatars/${encodeURIComponent(avatar.name)}`; | ||||
| 
 | ||||
| 						const avatar_upload_response = await api.fetch(avatar_path, { | ||||
| 							method: "PUT", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue