Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Zend\File\Transfer\Adapter\Http on receive : error "File was not found" in ZF 2.1 #3771

@samsonasik

Description

@samsonasik

When I use old way to upload file using Zend\File\Transfer\Adapter\Http like this :

$adapter = new Transfer\Adapter\Http();
$adapter->setDestination('./public/images/avatar');

 foreach ($adapter->getFileInfo() as $info) {
          if ($adapter->receive($info['name'])) {
                    //save to db or other tasks
          }
 }

I got error : "File was not found", I find the error message in Zend\Validator\File\UploadFile

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions