ebf253b841 
								
									
								
							
								 
							
						 
						
							
							
								
								Add attachments for PR reviews ( #16075 )  
							
							... 
							
							
 
							
							* First step for multiple dropzones per page.
* Allow attachments on review comments.
* Lint.
* Fixed accidental initialize of the review textarea.
* Initialize SimpleMDE textarea.
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								7eb8460132 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix attachments list in edit comment ( #13036 )  
							
							... 
							
							
 
							
							#11141  broke the appearance of dropzone attachments when editting
comments causing poorly updating lists.
This PR fixes this.
Fix  #12583 
Signed-off-by: Andrew Thornton art27@cantab.net  
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								cda44750cb 
								
									
								
							
								 
							
						 
						
							
							
								
								Attachments: Add extension support, allow all types for releases ( #12465 )  
							
							... 
							
							
 
							
							* Attachments: Add extension support, allow all types for releases
- Add support for file extensions, matching the `accept` attribute of `<input type="file">`
- Add support for type wildcard mime types, e.g. `image/*`
- Create repository.release.ALLOWED_TYPES setting (default unrestricted)
- Change default for attachment.ALLOWED_TYPES to a list of extensions
- Split out POST /attachments into two endpoints for issue/pr and
  releases to prevent circumvention of allowed types check
Fixes: https://github.com/go-gitea/gitea/pull/10172 
Fixes: https://github.com/go-gitea/gitea/issues/7266 
Fixes: https://github.com/go-gitea/gitea/pull/12460 
Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#Unique_file_type_specifiers 
* rename function
* extract GET routes out of RepoMustNotBeArchived
Co-authored-by: Lauris BH <lauris@nix.lv> 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								643142acab 
								
							
								 
							
						 
						
							
							
								
								Web editor: support upload files  
							
							
 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d0a0239bac 
								
							
								 
							
						 
						
							
							
								
								Squashed commit of the following:  
							
							... 
							
							
 
							
							commit 0afcb843d7ffd596991c4885cab768273a6eb42c
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 17:13:29 2016 -0600
    Removed Upload stats as the upload table is just a temporary table
commit 7ecd73ff5535612d79d471409173ee7f1fcfa157
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 08:42:41 2016 -0600
    Fix for CodeMirror mode
commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 08:03:33 2016 -0600
    Made tabbing in editor use spaces
commit 23af384c53206a8a40e11e45bf49d7a149c4adcd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date:   Sun Jul 31 07:56:46 2016 -0600
    Fix for data-url
commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9
Merge: 7fc8a89 991ce42ad7ea88cf85e9e1c7dcdd 
							
						 
						
							9 years ago