Zend\File
is a library that's part of Zend Framework, which is intended to make working with files easier.
Questions tagged [zend-file]
29 questions
1
vote
1 answer
getdata on File input to return only filename, not array of details
I have a form that has a fieldset with a file upload field in it. When I do a var_dump on $form->getData() I am being shown an array of data for the file field:
array (size=13)
'logo' =>
array (size=5)
'name' => string 'my-image.gif'…

Richard Parnaby-King
- 14,703
- 11
- 69
- 129
1
vote
1 answer
Allow empty file inputs in Zend_Form
I have a simple form accomplished with Zend_Form which is retrieving all its parameters from an XML file. Form has a file input which I need to allow empty submits as well. I mean users should have the chance to leave this field empty.
I tried…

Gokcen
- 11
- 1
1
vote
1 answer
Decrypt File Uploaded In Zend Framwork While Download
I am making a zend project that has a file upload functionality and the client wanted to encrypt and upload the files without their extension. I did that perfectly by using the following code :
$upload = new Zend_File_Transfer_Adapter_Http…

Manish Jangir
- 5,329
- 4
- 42
- 75
1
vote
1 answer
Zend File Upload Rename Error
I am uploading three files using Zend Element File. I am uploading and renaming the files. Now the problem is that when uploading same extension, it generates error of
Zend_Filter_Exception: File 'D:\wamp2\tmp\php2443.tmp' could not be renamed. It…

Awais Qarni
- 17,492
- 24
- 75
- 137
1
vote
2 answers
Zend Form File - File 'files' exceeds the defined ini size
I have created an upload form in Zend which is combined with uploadify to upload multiple files.
The error I keep getting is;
File 'files' exceeds the defined ini size
I have found online that the cause of this error is due to the form not having…

jjmu15
- 98
- 8
0
votes
1 answer
how to set path for uploaded files using zend framework?
i am trying to upload a video and convert it in php using zend framework and i have a bit of a problem with my logic.
i have a directory, locally, that needs to hold the uploaded files:
C:/xampp/htdocs/zend/videos/
fist i need to convert the video…

Patrioticcow
- 26,422
- 75
- 217
- 337
0
votes
3 answers
How to use Zend_File_Transfer?
I have been using normal file upload element to upload files and validate them. But recently, I found out that implementing a Zend_file_tranfer gives much control over the file.
I am searched Everywhere in the internet searching for a simple…

mrN
- 3,734
- 15
- 58
- 82
0
votes
2 answers
Skipping Validation for a single file in Zend_File_Transfer
For creating a business I upload 5 images along with a .csv file. I have used following zend validators
$upload = new Zend_File_Transfer();
$upload->addValidator('Count', false, array('min' =>1, 'max' => 6))
…

JABD
- 640
- 2
- 10
- 23
0
votes
1 answer
How to modify image name before uploading in zend framework 3
I am trying to upload image using zend form class and my current input filter is this
$inputFilter->add([
"name" => "ImageLogo",
"required" => false,
…

Ali Rasheed
- 2,765
- 2
- 18
- 31
0
votes
2 answers
How to upload Multiple images at a time with single button in Zend Framework 1.12?
This is my Controller
Image Controller:
class Admin_xxxxController extends Zend_Controller_Action
{
public function init()
{
$this->_helper->layout()->setLayout('admin');
if ($this->_helper->FlashMessenger->hasMessages()) {
…

Sai sri
- 515
- 12
- 25
0
votes
1 answer
Zend File multiple upload with access to seperate file names
I use Zend Framework 1.12 for some file upload system. And using Zend_File_Transfer_Adapter_Http in a form, for upload of two files.
There are two form elements for those two files.
$file1 = new Zend_Form_Element_File('file1');
// other options…

ahmetbitbit
- 37
- 4
0
votes
1 answer
how to get the path and file name of a uploaded file in Zend framework
I have form which allow users to upload a file. From my controller I want to get the path with filename. I am using getFileName() method. But it gives the below error:
Message: Method getFileName does not exist
Below is my controller…

ehp
- 2,495
- 6
- 29
- 43
0
votes
1 answer
How to move an image from temp folder to a folder inside the project in server in zend framework?
I have form where user can upload an image. I am working locally and when a user uploads a photo it added in the temp folder then I need to move it to folder inside the project. I need to know how to do this in live server.
Thanks

user1559230
- 2,790
- 5
- 26
- 32
0
votes
3 answers
Zend From file upload not working
I'm having some issues uploading a file using Zend Framework. I have created a form, listed below, and have passed the data input to my model where I am attempting to upload the file. IT seems only to get the file name however and fails to upload…

gazzwi86
- 1,019
- 1
- 15
- 35