PDA

View Full Version : File Can't Upload in Invision Board


AzNxRaVeR
8-26-06, 08:21 PM
When posting in my Invision Board forum, I can select a file to attach to the post. When I click the "Attach This Attachment" button, the progress bar moves but when it's done, the file does not get attached...

I think I set my PHP.INI file right. Here's the settings I changed:
; Maximum size of POST data that PHP will accept.
post_max_size = 50M

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 50M

I can't figure out why the files aren't being attached. Do I need something in my .htaccess file? I haven't made that file yet...

AzNxRaVeR
8-27-06, 11:41 PM
I made a .htaccess file with this in it:
DirectoryIndex index.php
Options -Indexes

SetEnv PHPRC /home/users/web/b1430/pow.MYNAME/htdocs

<IfModule mod_php4.c>
php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value short_open_tag 1
</IfModule>

Now when I try to upload something in the forum, I get this message:
The requested file upload failed because suitable permissions have not been enabled on the 'uploads' directory. Please contact the board administrator and inform them of this error.

In my file uploader script, I did this same exact thing, and I can upload stuff fine. Why doesn't it work in my Invision Board? :(

AzNxRaVeR
9-1-06, 11:19 PM
I still can't upload stuff on my Invision Board forums...

agridoc
9-5-06, 01:28 AM
Although not using Invision but SMF I also have problems with uploading AND downloading after migration.

Especially downloading is a big problem as already uploaded older files can ' t be downloaded.

AzNxRaVeR
9-5-06, 11:14 PM
Nevermind, I fixed it... it was my upload directory path in the settings.

My path was this: "/home/users/web/.../htdocs/forums/uploads" and I fixed the problem by adding a trailing slash after uploads... :sweatdrop

agridoc
9-6-06, 12:32 AM
Have you tried uploading and downloading with a relatively big file 8-10Mb?