mirror of https://github.com/docusealco/docuseal
				
				
				
			Merge 428729a04c into 4d8942803e
	
		
	
				
					
				
			
						commit
						2aeb701119
					
				| @ -0,0 +1,17 @@ | ||||
| class DocumentsController < ApplicationController | ||||
|   skip_before_action :verify_authenticity_token | ||||
| 
 | ||||
|   def create | ||||
|     file = params[:file] | ||||
| 
 | ||||
|     if file | ||||
|       render json: { | ||||
|         message: "Fichier reçu avec succès.", | ||||
|         nom: file.original_filename, | ||||
|         taille: file.size | ||||
|       }, status: :ok | ||||
|     else | ||||
|       render json: { error: "Aucun fichier reçu" }, status: :unprocessable_entity | ||||
|     end | ||||
|   end | ||||
| end | ||||
					Loading…
					
					
				
		Reference in new issue