Upload files other than images not working after update (Technics)

by mkjjj, Tuesday, September 11, 2012, 07:59 (4245 days ago)

Hallo,

I've just updated from 2.0 to 2.3. Unfortunately, I can't upload any other files than images in 2.3. I didn't install 2.0., but I'm pretty sure, it was modified. I added this code to the index.php:

  case 'upload_document':
     include('includes/upload_document.inc.php');
     break; 


That didn't do the trick.
The upload_document.inc.php in 2.3 refers to upload_document.tpl. But this file does not exist in the 2.3 installation package. Anybody any ideas?

Thanks! Mike

Upload files other than images not working after update

by Micha, Tuesday, September 11, 2012, 10:42 (4245 days ago) @ mkjjj

H Mike,

Anybody any ideas?

It seems to be modification of the forum-script. I found this thread. Maybe it is helpful.

Micha

Upload files other than images not working after update

by mkjjj, Tuesday, September 11, 2012, 16:32 (4245 days ago) @ Micha

Hi,

I've searched the forum and found the posting. It is, however, not really what I need. I could change the template file and use [link] tags. But for images I would like to keep the [img] tags. I've tried to write an if-else condition for $template = 'upload_image.tpl'; in the upload_image.inc.php file. No luck! Is there a reason for not supporting file upload? Any ideas are very appreciated!
Mike

Avatar

Upload files other than images not working after update

by Micha ⌂, Tuesday, September 11, 2012, 16:54 (4245 days ago) @ mkjjj

Hello,

Is there a reason for not supporting file upload? Any ideas are very appreciated!

Yes, security reasons e.g. a user can upload executable PHP-Code.

regards
Micha

--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences

RSS Feed of thread