Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Errors in selecting uploaded file for a news in category
Gosain
Posted on 25 Oct 2009, 18:28:27

Access: Member
Total Posts: 14
Joined: 2009-10-25

Hi Chris,

I wanted to make a file downloadable for a news item for which I uploaded a power point (.ppt) file then I went to edit an already created news item, and clicked on small color icon to select uploaded file and I see following errors (as shown in screen shot):

1) File size is showing 32 KB whereas the original size is 1.01 MB. Now checking this file physically in "uploads/" folder and also via "Options->File Uploads" menu option (2nd screen shot), the file size is okay i.e. 1.01 MB but at upload window it is showing incorrectly.

2) Errors at the checkbox for selecting that ppt file.

Version: 3.3

Can you please let me know how to fix these errors?

Thanks.
______________________

[img]http://i35.tinypic.com/1ok8zs.gif[/img]
______________________
Correct file size is showing at "Options->File Uploads" menu option:

[img]http://i33.tinypic.com/343m78o.gif[/img]
#1115
Last edited by Gosain at 2009-10-25 18:45:41 Reason:
Chris
Posted on 25 Oct 2009, 18:46:25

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Download this, replace your own copy of config.php with this new one and hopefully this should fix the problem.

Just noticed the second error regarding the filesize, looking into that now. The above file fixes the error message.
#1117
Last edited by Chris at 2009-10-25 18:47:36 Reason:
Gosain
Posted on 25 Oct 2009, 18:51:01

Access: Member
Total Posts: 14
Joined: 2009-10-25

Hi Chris,

I replaced my config.php with yours but error is still there but now on line 757.

Thanks.
#1118
Last edited by Gosain at 2009-10-25 18:55:21 Reason:
Chris
Posted on 25 Oct 2009, 18:55:33

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

This should fix both the eror message and the file size.
#1119
Gosain
Posted on 25 Oct 2009, 19:08:24

Access: Member
Total Posts: 14
Joined: 2009-10-25

Hi Chris,

The problem is solved but only in case of editing a news. While adding a news, selecting file window is still showing the same error on line 763.

The file size is still showing 32KB.

Thanks.
#1120
Chris
Posted on 25 Oct 2009, 19:17:30

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Third time lucky hopefully
#1122
Gosain
Posted on 25 Oct 2009, 19:21:33

Access: Member
Total Posts: 14
Joined: 2009-10-25

Hi Chris,

:original:
It worked and now no error at the selection of uploaded file screen, file size is also showing correctly.

Thanks.
#1124
Gosain
Posted on 25 Oct 2009, 22:05:03

Access: Member
Total Posts: 14
Joined: 2009-10-25

Hi Chris,

I followed an article here in the forum to display uploaded file in the article and it showed properly but when I click on the link to download that file following error is coming:

[img]http://i38.tinypic.com/o53oza.gif[/img]
At line 76 of index.php has the following code:
Code:
<?php 
header
("Location: $url");
?>


Thanks.
#1132
Chris
Posted on 25 Oct 2009, 22:29:42

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I added a new function to config.php - redirect($url)

Download this and replace your own copies of index.php & config.php with these new ones.
#1133
Network-13.com © 2013