FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Uploading problem
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Uploading problem [message #30041 is a reply to message #29533] Tue, 31 January 2006 10:06 Go to previous messageGo to previous message
awadallah is currently offline  awadallah   United States
Messages: 11
Registered: September 2005
Location: Palo Alto, CA
Karma:
Junior Member

Ilia,

I read the comments in fudapi.inc.php and did what I describe below, but for some reason the attachment comes back a 0 byets.

1. I created a topic by userid test with no attachments, the message id is 770.

2. I ftp-ed the large attachment (video.wmv) to

//FUDforum/files

3. I ran the following PHP script (which is in same dir as fudapi at //FUDforum/scripts):

<?php
require("../include/GLOBALS.php");
require("./fudapi.inc.php");
$mid = 770;
print fud_update_message("test", "test", 0, "ahmed", $mid, null, array( "//FUDforum/files/video.wmv") )
?>

After I did this, I noticed that the function did run successfully since the topic subject and body got over-ridden with the "test" strings, and also the message now showed an attachment as:

Attachment: video.wmv
(Size: 18.99MB, Downloaded 0 time(s))

which reflects the correct size of the attachment.

However, when I right click on that file and click on "save targe as" what I get back is a file of size 0 bytes.

Please let me know what am I doing wrong ?

thx,

-- amr
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Warning on msg.php
Next Topic: attachments not usable
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 01 20:23:51 GMT 2024

Total time taken to generate the page: 0.04030 seconds