logo
down
shadow

PHP - Codeigniter : Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open for reading, File does n


PHP - Codeigniter : Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open for reading, File does n

By : Amar Singh Ahirwar
Date : November 22 2020, 10:56 AM
wish help you to fix your issue I'm not sure if that is the case, but you should try to add the absolute path in file system and not the path of the url.
like:
code :
/var/www/YourProject/public/uploads/Data_Report.xls
yourUrl.com/uploads/Data_Report.xls
FCPATH   -> '/'
BASEPATH -> '/system/'
APPPATH  -> '/application/'
APPPATH.'public/uploads/what_ever.xls';


Share : facebook icon twitter icon
Uncaught exception 'PHPExcel_Reader_Exception' with message could not open for reading

Uncaught exception 'PHPExcel_Reader_Exception' with message could not open for reading


By : user2034481
Date : March 29 2020, 07:55 AM
hope this fix your issue I am creating a form for users that will allow them to upload .csv files and xls/xlsx files. Currently, the program does allow them to upload .csv files, which are used to update the Oracle 11g database I am working off of. However, I cannot seem to figure out how to open, then right the xsl/xlsx files to csv's. I keep getting this error:
code :
$inputFileName = '$file';
$inputFileName = $file;
Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open for reading! File does not exis

Fatal error: Uncaught exception 'PHPExcel_Reader_Exception' with message 'Could not open for reading! File does not exis


By : user2507025
Date : March 29 2020, 07:55 AM
To fix this issue In my script i´d like to read a .xls file with "browse & input file", then i wan´t PHPExcel to read/load the .xls and insert the cell values into mysql. , HTML code was missing name & id:
code :
<input type="file" name="file" id="file" multiple>
'PHPExcel_Reader_Exception' with message 'Could not open for reading! File does not exist.'

'PHPExcel_Reader_Exception' with message 'Could not open for reading! File does not exist.'


By : user2643205
Date : March 29 2020, 07:55 AM
hop of those help? I use BootstrapValidation to Validate files for PhpExcel. , The fault was in the .JS
code :
fields: {
    avatar: {
fields: {
    file: {
Fatal error: Uncaught exception 'Exception' with message 'Could not open input file'

Fatal error: Uncaught exception 'Exception' with message 'Could not open input file'


By : Ahmet
Date : March 29 2020, 07:55 AM
With these it helps You have already moved the file from $file_loc to $folder.$final_file, so this seems to be the root of your issue. You should be keeping $final_file as it is, and use:
code :
$crypt->encryt_file($folder.$final_file, $folder.$final_file.'.enc');
Fatal error: Uncaught PHPExcel_Reader_Exception: Could not open excel.csv for reading! File does not exist, or it is not

Fatal error: Uncaught PHPExcel_Reader_Exception: Could not open excel.csv for reading! File does not exist, or it is not


By : antonio.r
Date : March 29 2020, 07:55 AM
it should still fix some issue at PHPExcel_IOFactory::load you need to put the file path as parameter not just the file name so do a concatenation to get that like: $filePath."/".$fileName
Related Posts Related Posts :
  • Dynamic image for user's ID
  • How to only upload specific parts of HTML form with PHP?
  • Dynamic PHP string as MySQL table name
  • What is the error in my query?
  • PHP Upstart on Amazon EC2 Linux (Elasticbeanstalk)
  • how to print dynamic variable value in php
  • php mysql insert values and select
  • uploading image in codeigniter controller
  • Converting htaccess to nginx for counter
  • how can I show my signal transaction data as project name
  • php raspberry pi trying to change pi date
  • PHP and mysql, SELECT query return null
  • Unable to store Date values in php mysql table that are existing in excel file
  • Can we include 2 Mail() functions in 1 Page?
  • Problems with chinese characters
  • How to apply a function to every foreach result?
  • Use of CONCAT in FROM clause
  • Tag endpoint combined with user endpoint with Instagram API
  • create dynamic time in php and mysql
  • How to break zero index comma separated value into individual string in php
  • PHP Login session and echoing username
  • PHP : Difference b/w new self and new object()
  • Turkish character issue while inserting into MySQL database with PHP
  • Insert data from one DB into another on a different server - servers not linked
  • Sorting an array of strings using values alphabetically and considering the cases of values in PHP
  • Unable to solve .htaccess url rewriterule, gives 404 for all pages
  • Dual URL Rewrite In PHP
  • How to change value of cdata inside a .xml file and then again save it using php
  • Using filters from other classes within rules method in Yii 2?
  • json_decode syntax error from valid json
  • PHP get directory of included file on Virtualhost
  • RSA in php is confusing
  • Order in order without using events
  • How do I download a batch of pictures from URLs stored in a MySQL database
  • How to find pattern matching and save to array with preg_match
  • laravel4 data is not inserting in a single field
  • How can i merge Rows of An HTML table fetched from Mysql
  • How to get the duplicate values in array?
  • Add "."(dot) in a Numbers
  • Zend 2 multiple layouts for 1 module setup
  • PHP Form Troubles
  • How to use if condition in my wordpress shortcode
  • Amazon S3 Data retrieval in URL for all the images in bucket
  • Convert Bangla date to standard English date
  • In Jquery how to redirect to another page?
  • Building an ecommerce site using Laravel: How do I view/route products based on their ID?
  • My kg and lbs conversion is always off by significant amount
  • How to use loop in comment section
  • Jqgrid with Datepicker
  • How to prevent opening an authenticated php web page?
  • phpexcel - Making file to download rather than saving in the server
  • Send radio box value with $_POST
  • Volley: How to extract JSONObject from String Response? Is it possible?
  • Adding Image to the Excel in phpexcel in php
  • Pass an array to Redirect::action in laravel
  • display file name in while loop without url
  • Snow by date php
  • How to Replace a value in SQL only to a certain extent
  • How do I use HTML & PHP forms to insert data into a database?
  • How to call a php script/function on a html button click
  • shadow
    Privacy Policy - Terms - Contact Us © ourworld-yourmove.org