Tim Gall - 2011-05-26

Hi,
To fix the error message, in FaqUpload.php try moving line 142 so its above line 141 like this:

$origfilename = $_FILES["file"]["name"][$key];
if ($value == UPLOAD_ERR_OK) {

The size limit issue might be related to your server settings.
Specifically php.ini has 2 parameters "upload_max_filesize" and "post_max_size" which I think could be affecting the size limit for http uploads. phpinfo() will tell you what the parameters are set to; the values are in bytes.
post_max_size is the maximum size for $_POST data and should be equal or larger than upload_max_filesize.
Both values should be in your servers php.ini file.
The solution you suggested would also be a useful addition as it will allow people to link a document to more than one FAQ. A dropdown list with the files in the "pdf" folder would be ideal for this.

I would be happy to add you as a developer for the project but we should go about it in stages. If you have any code you want changed or added to the project, send it to me first so I can have a look. If it looks ok I will add it straight away or release it as a patch. Once we have been through that procedure a few times we can look into making you an official contributor or developer.
At the moment the main aim is for maximum stability, cosmetic bling and bug fixing.

I think Peter and crew (from osTicket) are currently working on a new release of osTicket and from what I can make out it may require some compatibility modifications to osFaq. I'm not positive on that yet but it seems the most likely given some pending changes he has planned for the admin and staff permission systems.
I want to have a new release of osTicket ready within the next 3 months. The main additions will be a captcha system on the userside faq submit page; the rest will be improvements, fixes and cosmetic enhancements.

Feel free to contact me via email [oz-devworx@users.sourceforge.net] to discuss further or get some changes implemented. The time I can spend on the project varies on what work I have on at the time but I always reply when I get the chance.

If I missed anything, let me know.