first item of array should be read due to dropzone returns always an array of files
This commit is contained in:
		@@ -37,7 +37,7 @@ class CreateTransaction extends Job
 | 
			
		||||
 | 
			
		||||
            // Upload attachment
 | 
			
		||||
            if ($this->request->file('attachment')) {
 | 
			
		||||
                $media = $this->getMedia($this->request->file('attachment'), 'transactions');
 | 
			
		||||
                $media = $this->getMedia($this->request->file('attachment')[0], 'transactions');
 | 
			
		||||
 | 
			
		||||
                $this->transaction->attachMedia($media, 'attachment');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -37,7 +37,7 @@ class UpdateTransaction extends Job
 | 
			
		||||
 | 
			
		||||
            // Upload attachment
 | 
			
		||||
            if ($this->request->file('attachment')) {
 | 
			
		||||
                $media = $this->getMedia($this->request->file('attachment'), 'transactions');
 | 
			
		||||
                $media = $this->getMedia($this->request->file('attachment')[0], 'transactions');
 | 
			
		||||
 | 
			
		||||
                $this->transaction->attachMedia($media, 'attachment');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user