Author Topic: Want to upload .js,.php instead of image  (Read 4330 times)

0 Members and 1 Guest are viewing this topic.

Offline dilkebol

  • Newbie
  • *
  • Posts: 34
    • View Profile
Want to upload .js,.php instead of image
« on: July 18, 2008, 08:59:01 PM »
I have installed 4images gallery on my 10 + websites. What I like to do it,I like to upload *.js or *.php or *.htm file along with *.jpg,*.gif
So that I can use other embedded documents from other websites.


 

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Want to upload .js,.php instead of image
« Reply #1 on: July 19, 2008, 01:35:06 AM »
How do you envision this to be displayed? will it display the source of such files like plain text?
If you are planning on do other then showing the source and if visitors can upload on your site, I would highly NOT recommend doing it for security reasons.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline dilkebol

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Want to upload .js,.php instead of image
« Reply #2 on: July 19, 2008, 06:34:53 AM »
see below is the file
 :?
i.e. javascript
that I like to upload in such a manner that, it will execute & display images or whatever the code is
will not be displayed to visitors. i.e. output i want. not plain text

<script language='javascript' src='http://www.santabanta.com/wallpapers/slideshow.asp?catname=aishwarya rai'></script>

& my visitors are not able to upload .
If javascript is not working are are the another ways to so so..

thanks in advance.

Offline dilkebol

  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Want to upload .js,.php instead of image
« Reply #3 on: July 19, 2008, 10:40:14 AM »
Done it ............ !!!
w/o your help it was not possible :)...

http://www.gr8click.com/photogallery/details.php?image_id=2017

Thanks again