change the default message on upload file cakephp <p>In cakephp I want to upload a file on a form entry, e.g. a resume to upload and also form entry of people's names, addresses etc. The problem is when I upload a file I get the message after the file is uploaded 'no file selected'. The function works but this message is confusing for the user as I want the name of the file displayed instead of 'no file selected'.</p> <p>EDIT Next to the button Browse, the label appears 'No file Selected'. How do I suppress/alter this message?</p> <p>UPDATE: Found a workaround answer which might not be the best solution. </p> <h2>View</h2> <pre><code>echo $this-&gt;Form-&gt;input('reason', array('label' =&gt; 'Reason for Cancellation', 'style'=&gt; "width:30%",'value'=&gt;$reason)); echo __('Upload Attachment'); echo $this-&gt;Form-&gt;input('resume_file', array('type' =&gt; 'file')); echo $this-&gt;Form-&gt;submit('Upload', array('name'=&gt;'upload')); echo $this-&gt;Form-&gt;end(); </code></pre> <h2>Controller</h2> <pre><code>public function uploadfile() { $reason=null; if ($this-&gt;request-&gt;is('post')) { if (isset($this-&gt;request-&gt;data['upload'])) { $reason=$this-&gt;request-&gt;data['Resume']['reason']; if ($this-&gt;attachmentupload() &amp;&amp; $this-&gt;Resume-&gt;save($this-&gt;request-&gt;data)) { $this-&gt;Session-&gt;setFlash(__('The attachment has been saved'), 'flash_success'); } else { $this-&gt;Session-&gt;setFlash(__('The attachment could not be saved. Please, try again.'),'flash_alert'); } } } } public function attachmentupload() { $file = $this-&gt;request-&gt;data['Resume']['resume_file']; $resume_org_filename = $file['name']; $resume_filename = $file['name']; if ($file['error'] === UPLOAD_ERR_OK) { // Code to check if file with the same name exists. If it exists - add n towards the end $t = 0; $url = APP.'Resumes'.DS.$resume_filename; while(file_exists($url)) { $resume_filename = substr($resume_filename,0, strpos($resume_filename, '.'))."_$t".strstr($resume_filename, '.'); $url = APP.'Resumes'.DS.$resume_filename; $t++; } // Set the parameters if (move_uploaded_file($file['tmp_name'], $url)) { $this-&gt;request-&gt;data['Resume']['tutor_id'] = -1; $this-&gt;request-&gt;data['Resume']['student_id'] = -1; $this-&gt;request-&gt;data['Resume']['url'] = $url ; $this-&gt;request-&gt;data['Resume']['resume_filename'] = $resume_filename; $this-&gt;request-&gt;data['Resume']['resume_org_filename'] = $resume_org_filename; return true; } } return false; } </code></pre>