This topic is locked
[SOLVED]

  File Upload not downloading same file doing download of download.php ??

7/14/2012 4:15:56 AM
PHPRunner General questions
A
Abhijeet author

Hello Room,
I am using Phprunner 5.3 build 7474 with Oracle 9i database on Windows xp.
My problem is that I upload a pdf file which is around 10 kb in size. I uploaded such several files. They all get uploaded ok. but the problem is starting when i visit list view and try to download the same file. it is not showing me the file name but instead of filename a "download.php" file is trying to get downloaded.
I am stumped. As this problem is with certain files only and not all.
Please let me know what is the problem. I need to do this urgently.
Please help me.

A
Abhijeet author 7/19/2012

Hello Room,
Anybody, Please help me. This is urgent. I have uploaded .doc files now, some of the files I am able to download but for some files it is showing error as given below and is downloading download.php. What I am perplexed is that why is it downloading some of the word files as it is and why not other is in question. when i opened the downloaded file download.php in word i see below file as image and the screenshot of which I am copying below.
Error type 2

Error description feof() expects parameter 1 to be resource, boolean given

URL 192.168.1.214/srm/download.php?table=Copy_of_SCOTT_CHALPRODSRM&field=FILENAME&key1=19&key2=&key3=&key4=I0697

Error file H:\xampp\htdocs\srm\include\phpfunctions.php

Error line 190

SQL query SELECT "CO", "CODE", "DOCNO", "ITEMID", "FILENAME", "CUSTID", "GRN", "PARTYINVNO", "HODEKFILENAME", "QTY" FROM SCOTT.CHALPRODSRM where (CO=19 and CODE is null and DOCNO is null and ITEMID='I0697') and (CUSTID='A2038')
Anybody, Please help me, I am really desperate to go through this.
Thank you in advance.



Hello Room,
I am using Phprunner 5.3 build 7474 with Oracle 9i database on Windows xp.
My problem is that I upload a pdf file which is around 10 kb in size. I uploaded such several files. They all get uploaded ok. but the problem is starting when i visit list view and try to download the same file. it is not showing me the file name but instead of filename a "download.php" file is trying to get downloaded.
I am stumped. As this problem is with certain files only and not all.
Please let me know what is the problem. I need to do this urgently.
Please help me.

Admin 7/19/2012

There is a problem with one of key columns (CODE) being null. No key column can be null.

A
Abhijeet author 7/20/2012

Voila ! The problem is resolved. I tried to remove the keys but still it was not happening, so I added the filename also in the key column which the system was seeking, and every file was able to get opened properly.
Thank you all very much.



There is a problem with one of key columns (CODE) being null. No key column can be null.