mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Update CHANGELOG
This commit is contained in:
		
							parent
							
								
									4a58bc9690
								
							
						
					
					
						commit
						ffaf6ff1f9
					
				
					 1 changed files with 22 additions and 11 deletions
				
			
		
							
								
								
									
										17
									
								
								CHANGELOG.md
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								CHANGELOG.md
									
										
									
									
									
								
							|  | @ -1,10 +1,10 @@ | ||||||
| # Next | # Next | ||||||
| 
 | 
 | ||||||
| - `env.params.files` is now an `Array(FileUpload)`. You can iterate over to access the images. | - *[breaking change]* Removed `env.params.files`. You can use Crystal's built-in `HTTP::FormData.parse` instead | ||||||
| 
 | 
 | ||||||
| ```ruby | ```ruby | ||||||
| env.params.files.each do |file| | post "/upload" do |env| | ||||||
| 
 |   HTTP::FormData.parse(env.request) do |upload| | ||||||
|     filename = file.filename |     filename = file.filename | ||||||
| 
 | 
 | ||||||
|     if !filename.is_a?(String) |     if !filename.is_a?(String) | ||||||
|  | @ -15,9 +15,20 @@ env.params.files.each do |file| | ||||||
|       IO.copy(file.tmpfile, f) |       IO.copy(file.tmpfile, f) | ||||||
|     end |     end | ||||||
|     "Upload OK" |     "Upload OK" | ||||||
|  |   end | ||||||
| end | end | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | - *[breaking change]* From now on to access dynamic url params in a WebSocket route you have to use | ||||||
|  | 
 | ||||||
|  | ```ruby | ||||||
|  | ws "/:id" do |socket, context| | ||||||
|  |   id = context.ws_route_lookup.params["id"] | ||||||
|  | end | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | - *[breaking change]* Removed `_method` magic param | ||||||
|  | 
 | ||||||
| # 0.23.0 (17-06-2018) | # 0.23.0 (17-06-2018) | ||||||
| 
 | 
 | ||||||
| - Crystal 0.25.0 support 🎉 | - Crystal 0.25.0 support 🎉 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue