I would like to know which files, if any, refbase is restricted to uploading. Is it only PDF? Or can any type of file be uploaded?
> I would like to know which files, if any, refbase is restricted to
> uploading. Is it only PDF? Or can any type of file be uploaded?
You can upload any file. However, file names must not end with .exe, .com, .bat, .zip, .php, .phps, .php3 or .cgi.
In the refbase interface, non-PDF files will be indicated with a generic file icon, as can be seen in this screenshot (taken from an older refbase version):
Yes, it answers my question, thanks. (I asked because of security concerns.)
One final question - in which refbase file is coded the types of files that can be uploaded?
> in which refbase file is coded the
> types of files that can be uploaded?
ATM, the list of forbidden file name extensions is hardcoded into 'modify.php' (at line 588, in case of refbase-0.9.5). You could also search that file for ".exe".
To only allow for upload of files with a .pdf file name extension, replace line 588 with this one:
if (!eregi("\.(pdf)$", $uploadFile["name"]))
Yep. You read my mind. That's exactly what I wanted to do - restrict uploads to .pdf files only. Thanks!
> That's exactly what I wanted to do -
> restrict uploads to .pdf files only.
Glad I could be of help! Let us know if you've got further questions.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.