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

Home » FUDforum Development » Bug Reports » Problems with file attachments
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon9.gif  Problems with file attachments [message #11829] Fri, 18 July 2003 14:09 Go to next message
Gonzo75 is currently offline  Gonzo75   Italy
Messages: 6
Registered: June 2003
Karma: 0
Junior Member
I have a BIG problem with file in attach.
When I attach a file whole procedure seems OK, but when I try to download the file I receive only a 0 byte file...
Why ?
Thanks!

[Updated on: Fri, 18 July 2003 14:39]

Report message to a moderator

Re: Problems with file attachments [message #11830 is a reply to message #11829] Fri, 18 July 2003 14:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I certainly have not encountered such a problem myself, check inside the files/ directory of the forum to see the sizes of the file attachments.

FUDforum Core Developer
Re: Problems with file attachments [message #11831 is a reply to message #11830] Fri, 18 July 2003 14:12 Go to previous messageGo to next message
Gonzo75 is currently offline  Gonzo75   Italy
Messages: 6
Registered: June 2003
Karma: 0
Junior Member
in /files/ directory there aren't any files !!!
Re: Problems with file attachments [message #11832 is a reply to message #11829] Fri, 18 July 2003 14:16 Go to previous messageGo to next message
Gonzo75 is currently offline  Gonzo75   Italy
Messages: 6
Registered: June 2003
Karma: 0
Junior Member
My server is Windows 2000 server.
I have installed FUD via FTP:

/ROOT
/FUDforum (data folder) Read&Write (subfolder too)
/forums (forum folder) Read&Write (subfolder too)
Re: Problems with file attachments [message #11833 is a reply to message #11829] Fri, 18 July 2003 14:25 Go to previous messageGo to next message
Gonzo75 is currently offline  Gonzo75   Italy
Messages: 6
Registered: June 2003
Karma: 0
Junior Member
I cannot see any of my uploaded files in FUD directories... but I have not receive any error messages during uploading Sad
Links to uploaded files and file size are correctly in post messages !!! Crying or Very Sad Crying or Very Sad Crying or Very Sad Crying or Very Sad

[Updated on: Fri, 18 July 2003 14:26]

Report message to a moderator

Re: Problems with file attachments [message #11836 is a reply to message #11833] Fri, 18 July 2003 15:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Which version of PHP are you using?

FUDforum Core Developer
Re: Problems with file attachments [message #11838 is a reply to message #11836] Fri, 18 July 2003 15:54 Go to previous messageGo to next message
Gonzo75 is currently offline  Gonzo75   Italy
Messages: 6
Registered: June 2003
Karma: 0
Junior Member
prottoss wrote on Fri, 18 July 2003 11:45

Which version of PHP are you using?


System Configuration
PHP built On: Windows NT localhost 5.0 build 2195
Database Version: 3.23.53a
PHP Version: 4.3.1
Web Server: Microsoft-IIS/5.0
WebServer to PHP interface: cgi-fcgi
Forum Version: 2.5.0RC6
Relavent PHP Settings: Safe Mode: OFF
Open basedir: none
Display Errors: ON
File Uploads: ON
Magic Quotes: ON
Register Globals: ON
Output Buffering: OFF
Disabled Functions: none
PSpell Support: No

I have installed a "fresh" version of FUD but the problem remains...

/files/ is empty !!!
Re: Problems with file attachments [message #11866 is a reply to message #11838] Sat, 19 July 2003 14:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Check file called std_out.log inside the error directory. If there were any problems moving the uploaded file they should be recorded in there.

FUDforum Core Developer
icon9.gif  Re: Problems with file attachments [message #16830 is a reply to message #11829] Sun, 22 February 2004 04:34 Go to previous messageGo to next message
kbackens is currently offline  kbackens   United States
Messages: 2
Registered: February 2004
Karma: 0
Junior Member
I am also running on windows and having the same problem with file attachments. Here is my error log:

2004-02-21-22-05-26 [ERR] unable to move uploaded file
2004-02-21-23-23-33 [ERR] unable to move uploaded file
2004-02-22-04-21-25 [ERR] unable to move uploaded file

Can somebody please help?
Re: Problems with file attachments [message #16831 is a reply to message #16830] Sun, 22 February 2004 17:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Make sure the webserver has permissions to write to the temporary directory as specified by your php.ini.

FUDforum Core Developer
Re: Problems with file attachments [message #16837 is a reply to message #11829] Mon, 23 February 2004 15:54 Go to previous messageGo to next message
kbackens is currently offline  kbackens   United States
Messages: 2
Registered: February 2004
Karma: 0
Junior Member
I have given apache user all privledges, still no results. I have tried changing the tmp directory many different ways too.
Re: Problems with file attachments [message #16838 is a reply to message #16837] Mon, 23 February 2004 16:01 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try sample upload code in PHP.net website. The cause for the error is that PHP function move_uploaded_file() fails to work.

FUDforum Core Developer
Re: Problems with file attachments [message #17381 is a reply to message #16838] Sat, 27 March 2004 18:53 Go to previous messageGo to next message
jjesus is currently offline  jjesus   United States
Messages: 1
Registered: March 2004
Karma: 0
Junior Member
I'm having the same problem. Maybe it only happens on Windows.

I tried the PHP test from php.net. It did not report an error. I saw the upload file in my tmp directory C:\tmp.

But, I did not see the file C:\WINDOWS\TEMP\phpA.tmp, which, I suppose is the output of the move_uploaded_file().

I'm not sure of all the mechanisms, but I think it's broken on Windows.
Re: Problems with file attachments [message #17402 is a reply to message #17381] Mon, 29 March 2004 15:27 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The error of "unable to move uploaded file" indicates that the PHP function move_uploaded_file() had failed. This is not a FUDforum bug, but rather a misconfiguration of your end (permissions problem(s)) or a bug in the PHP version you are using.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Member list pages -- extra page if member count is a multiple of page size
Next Topic: Problems with special characters
Goto Forum:
  

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

Current Time: Wed Nov 27 09:57:24 GMT 2024

Total time taken to generate the page: 0.02799 seconds