Build Your Own Arcade Controls Forum

Main => Artwork => Topic started by: mahuti on September 27, 2004, 02:10:56 am

Title: Art Library Fixes
Post by: mahuti on September 27, 2004, 02:10:56 am
Hey guys,

Lately there have been a few uploading problems at the art library, a couple of notes about that below.

1. I believe the problem was related to my virtual server host. My hard limit on PHP uploads is 7 mb. A lot of the files that people have been trying to upload lately have been over that size, and have not worked. I didn't realize there was such a limit, and unfortunately, it is not something I could have them adjust (unless I went with a fully dedicated server... which is a possibility) There is also a php processing issue related to the uploading of large files, with a limit set. Not much I can do about that either.

The fix. I've limited the size of uploads to 7 mb. If you need to upload anything bigger, you can message me, and I will give you an FTP username & password for uploading these files, which I will then move over to the live site for you. Just PM me here, and I will take care of it asap.

2. Just for good measure I backed up the database (which is a somewhat regular occurence) and all of the media. I then reinstalled the software. I tried to mod the software to allow multi-language support. I keep getting a "t_foreach" error... pretty basic, but seems limited somewhat to my flavor of PHP, so I'm waiting to hear back the software authors.

Anyway, sorry for any inconvenience.
Title: Re:Art Library Fixes
Post by: patrickl on September 27, 2004, 07:58:13 am
If you can have your own .htacces files you should be able to set post_max_size and upload_max_filesize on a per directory basis.

for instance, we have these lines in our .htaccess file:
php_value upload_max_filesize 20M
php_value post_max_size 20M

(the manual says you also need to increase the memory size, but I couldn't figure out why so we didn't do that and it works fine AFAIK)

See also:
http://www.php.net/manual/en/function.ini-set.php
Title: Re:Art Library Fixes
Post by: mahuti on September 27, 2004, 11:36:35 am
No that doesn't work. Already look into it.
Title: Re:Art Library Fixes
Post by: patrickl on September 27, 2004, 01:28:12 pm
Ah well, for PHP that's the way you are supposed to configure it (I'm happy it does work on our servers).

If that doesnt work for you then I guess it's not PHP holding you back (you could check with phpinfo to be sure though). They might have limited the web server upload size (LimitRequestBody?), but that sounds like a lame thing to do.
Title: Re:Art Library Fixes
Post by: mahuti on September 27, 2004, 01:31:50 pm
No, it's a specifically stated set limit from my hosting company. They set it in their php.ini file

Title: Re:Art Library Fixes
Post by: patrickl on September 27, 2004, 02:00:13 pm
No, it's a specifically stated set limit from my hosting company. They set it in their php.ini file
Well if it is only their php.ini file then you should try that .htaccess addition I gave. That's designed to overrule the exactly those php.ini settings. Maybe you did something wrong before (I have to admit it took me a few tries too) Maybe you also need to change the memory size, but I never needed that.

If you put a php.info page in the directory you can see if changing the settings worked or not.

We run 2 webservers where we do the same. We limit my clients to uploads of 8MB (for their own safety really), but if people want to upload bigger files they can overrule that.
Title: Re:Art Library Fixes
Post by: mahuti on September 27, 2004, 09:51:47 pm
OK. You got me. That actually worked. Thanks for being persistent.

I had tried that, but finally figured out the right place for it.

So, thanks again. I appreciate it.

Anyway, I've sent you a PM.
Title: Re:Art Library Fixes
Post by: froggerman on September 28, 2004, 12:12:49 am
I am still having a problem trying to upload files. Here is a picture of the error screen. Any thoughts?
Title: Re:Art Library Fixes
Post by: patrickl on September 28, 2004, 04:34:19 am
OK. You got me. That actually worked. Thanks for being persistent.

I had tried that, but finally figured out the right place for it.

So, thanks again. I appreciate it.

Anyway, I've sent you a PM.
Ah, ok great that it works. You really had me worried there  :P

(BTW I guess I should have read this before reading the PM)
Title: Re:Art Library Fixes
Post by: mahuti on September 28, 2004, 11:09:02 am
Hm. I don't know froggerman.

I'll look into it.
Title: Re:Art Library Fixes
Post by: mahuti on September 28, 2004, 11:12:41 am
Just email it to me and I'll try it out. I just tried with an ai file with no problem, I wanna get this fixed, though, and I'm not having that problem. So send it to me, I'll see if I can recreate the problem.