How to upload dynamically generated excel file in Codeigniter

Discussion in 'PHP' started by MSK7, Nov 17, 2014.

  1. #1
    Hello,
    I am dynamically exporting data from db in a excel file called 'mydata.xls' using phpExcel with CI.

    I am not going to force download that file on user browser, Just only want to export data in a excel file & upload that file on 'uploads' folder.

    So i am trying to upload this generated excel file 'mydata.xls' using do_upload() in CI,

    But having no idea how to do it, as i have no form field name like-($_FILES['userfile']), to pass in do_upload() .

    kindly guide me regarding these issue.

    Thanks & regards.
     
    Last edited: Nov 17, 2014
    MSK7, Nov 17, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Why can't you just create the excel-file in the uploads-folder?
     
    PoPSiCLe, Nov 17, 2014 IP