I would like to allow users to upload pictures to my server

hello;
I would like for users to be able to upload jpgs from a HTML
interface;
the pictures will then be available to be dynamically loaded
into the website;
PROBLEM 1 : can a HTML webpage access a user's computer to
get the picture?
PROBLEM 2 : how to upload it to the server? Javascript does
not have access to the server, PHP does not have access to the
webpage;
PROBLEM 3 : checking for filetypes of pictures;
any thoughts?
thanks
dsdsdsdsd

dsdsdsdsd wrote:
> David, thank you very much; I was not expecting that
HTML would have a
> form.input type that would do this;
It's even available with a single click in Dreamweaver. Just
select File
Field from the Forms category of the Insert bar. It's
completely
cross-browser, and automatically generates the Browser
button.
> would you please check your "PHP Solutions" link; I
would like to read it but
> I am getting an Error 404;
The link is fine. I had a temporary problem logging onto my
mail account
a little earlier, so it's possible that the server might have
been down
for a short while.
> but might you tell me in a nutshell about the security
issue? seems to me that
> the PHP developer does not need to be concerned about
security, but instead
> only the innocent websurfer needs to be concerned about
the security of their
> pc's directory structure;
There is absolutely nothing for the innocent websurfer to
worry about,
and everything for the PHP developer to guard against. The
form is
entirely under the control of the user. The browse facility
simply lets
the user select the file to be uploaded.
You, as the PHP developer, on the other hand, need to make
sure that
what's being uploaded doesn't exceed a maximum size, that
it's of an
acceptable MIME type, that it doesn't contain a script that
attempts to
probe the file system on your server, and that it doesn't
contain
offensive or illegal material. Letting unknown people upload
files to
your server makes you vulnerable to a whole slew of malicious
attacks.
You probably cannot eliminate all potential problems
(particularly
regarding obscene or illegal material), but you can take a
lot of
precautions to minimize your risk.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • Would like to create a file upload facility in a form based on stored procedure

    Hello,
    I would like to create a 'File Upload' in a 'form based on stored procedure'. The version of portal that I am running is 3.0.7.6.2. In this version, only 'form based on table' has the ability to upload files. Or is it that I am missing something?
    Please let me know if this is possible in higher versions of portal.
    Thank you for your help.
    Jayasree

    I have kin od fdone this by using the additem fucntion, if you look at the HTML of the add file page, you can see the parameter that are required for the form.

  • How do I allow users to upload personal files through website?

    How do I allow users to upload personal files through our website?
    I am trying to allow the visitors the ability to upload images for a future contest we will be hosting. I am trying to build a submit form with personal fields (already got this done) along with a field they can upload 1 or 2 images. I want the form to send me an email with details along with image files. I have a BC webbasic+ account and I am using Muse for my web editing.
    Can someone point me in the right direction?

    Hi,
    You could apply a "file attachment" field within the web form.  If needing more than 1 file attachment you'll need to access your form code and hard-code the additional field. 
    The form will collect the file(s) and will be held within the case details under "related files".  You can also assign a workflow to recieve notifications however only 1 file will appear in each email.  To see the other files you'll need to access your order details. 
    All this can be create and managed within your site's admin.  yoursite.com/admin 
    Within the site admin...
    http://helpx.adobe.com/content/help/en/business-catalyst/using/create-insert-form.html (Creation of webform, etc)
    http://helpx.adobe.com/content/help/en/business-catalyst/sbo/customer-database.html#id_227 59 (Manage customer web form submissions)
    Hope this helps!
    -Sidney

  • Good morning, i would like to know how to take pictures from iphoto and put them in a folder on desktop

    Good morning: would like to know how to take pictures from my iphoto and put them in a folder on my desktop

    To take photos from iPhoto and put them onto a folder on Desktop, first create a folder on Desktop. Right-click on Desktop and create a new folder.
    Then, open iPhoto, and you have two ways to export photos:
    1. Select the photos you want to copy to Desktop with Command key (or go to Edit menu > Select All, if you want to copy all photos), and then, drag them to the folder on Desktop.
    2. Select the photos you want to copy to Desktop with Command key, go to File menu > Export, and follow the steps.
    You can choose the one you prefer

  • TS3682 i have an iphone 4 and i would like to download my contacts and pictures to my computer

    i have an iphone 4 and i would like to download my contacts and pictures to my computer

    You may find this useful?
    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    Start from Chapter 2, Page 18 which should give you a start? Work your way upwards from there.
    You're going to need a Mac or PC. If it's a PC download and install iTunes from here:
    http://www.apple.com/itunes/download/
    And use the cable that came with your iPhone and connect the other end to any of your computer's USB ports and then launch iTunes.

  • How to enable anonymous users to upload pictures inside a picture library?

    I have a sharepoint site. i have created a picture library inside this sharepoint site. i am trying to enable anonymous users to upload pictures in this picture library without login into the site.
    Please let me know if that's possible or is there a way that anonymous users can upload files or pictures inside sharepoint site without login into the site.Visit: http://yagyashree.wordpress.com
    MCP & MCTS [WSS 3.0/MOSS]

    Hi,
    You need to at least enable anonymous access for the picture library.
    To enable anonymous access for individual lists
    Go to the home page of your Web site and, in the left navigation pane, click View All Site Content.
    Click the list on which you want to enable anonymous access.
    On the Settings menu, click List Settings.
    On the Customize List page, in the Permissions and Management section, click Permissions for this list.
    On the Permissions page, on the Actions menu, click Edit Permissions. A dialog box is displayed informing you that you are about to create unique permissions for this list. Click OK.
    On the Settings menu, click Anonymous Access.
    Select permissions for users who have anonymous access to the list, and then click OK.
    In the step 7, make sure you have checked Add Items option.
    See Configure anonymous access (Office SharePoint Server) (http://technet.microsoft.com/en-us/library/cc263363.aspx) for more information.
    Hope the information can be helpful.
    -lambert
    Lambert Qin | Microsoft Online Support Engineer
    How to ask a question in the forum (http://support.microsoft.com/kb/555375)
    Posting is provided "AS IS" with no warranties, and confers no rights.

  • How to allow users to upload a flat file to BW

    Hi All,
    For a planning application I would like to permit our users to upload a flat file on their local desktop to the infopackage and execute the load.
    We would like to empower the users to prepare and upload their flat files into BW from their desktop without asking for BW support.
    Please let me know if any of you have followed this approach.
    Thanks
    Karen

    Hi,
    The possible steps..
    1. Create a small program and then give
    Selection Screen:
    FIle name : -
    Note: Ask users give always same file name i.e. xyz.csv
    Once user will give file name and execute it then file will save in Application Server (You fix the path like  /usr/sap/BI1/DVEBMGS00/work, you create seperate folder in Application server)
    2. Create a small Program with is using Events..
    REPORT  ZTEST_EV.
    DATA: EVENTID LIKE TBTCJOB-EVENTID.
    DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
          EVENTID = 'ZEVENT1'.
          EVENTPARM = 'ZEVENTPARAM'.
    CALL FUNCTION 'RSSM_EVENT_RAISE'
              EXPORTING
                I_EVENTID                         = EVENTID
                I_EVENTPARM                  = EVENTPARM
              EXCEPTIONS
               BAD_EVENTID                            = 1
               EVENTID_DOES_NOT_EXIST       = 2
               EVENTID_MISSING                     = 3
               RAISE_FAILED                           = 4
               OTHERS                                    = 5
            IF SY-SUBRC <> 0.
                     MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                     WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
            ENDIF.
    3. Once user will upload the file in Step 1, then he need to run this Program,.
    4. You craetea Process Chain using this Event, then once User will run this program then the Data Loads will happen through Process Chain.
    Note: Eventhough this is lengthy process, it is protected 100%, because we are not giving any access to User, we just given reports/programs to execute.
    Thanks
    Reddy
    Thanks
    Reddy

  • Would like to change user name

    I would like to change my user name for the "Apple Support Communities".
    I don't see how this can be done form the info I see on the webSite.
    Does anyone know how to accomplish this.
    Thank you,
    Eddie

    You cannot...
    You may, however, set up a new account.  The old one will slowly fade to the archives.
    Barry

  • Need to allow users to upload images (jpg) in the flash (.swf) from your local computer (with the drive C). Help, please.

    Faly .swf is on the server.
    The user loads the page HTMl file .swf.
    By clicking on button_mc the user can select from your computer (local disk) image file to upload not on the server and temporarily - to flash - the file.
    Фалй .swf находится на сервере.
    Пользователь загружает страницу HTMl с файлом .swf.
    По нажатию на кнопку button_mc пользователь может выбрать на своем компьютере (локальном диске) файл картинки для загрузки не на сервер, а временно - во flash - файл.
    Below given code works only if the image file .swf are in the same directory (folder).
    I know the file name, but I can not find the full local path to his computer to the selected file.
    Ниже приведенный код работает, только если картинка и файл .swf находятся в одной папке (folder).
    Я могу узнать имя файла, но не могу выяснить полный локальный путь на его компьютере до выбранного файла.
    How do I get my site you can download at home in my swf file to a photo to her dalsche work?
    Как сделать, чтобы пользователь моего сайта мог у себя дома загрузить в мой файл swf свою картинку, чтобы с ней дальще работать?
    button_mc.addEventListener(MouseEvent.CLICK, buttonClick);
    function buttonClick(event:MouseEvent):void {
    var mm:String = new String();
    var myFileReference:FileReference = new FileReference();
    var myFileFilter:FileFilter = new FileFilter("Images", "*.png;*.gif;*.jpg");
    try {
    myFileReference.browse([myFileFilter]);
    myFileReference.addEventListener(Event.SELECT, onSelectFile);
    function onSelectFile(event:Event):void {
    mm = FileReference(event.target).name;
    var loaderPic:Loader;
    loaderPic = new Loader();
    loaderPic.contentLoaderInfo.addEventListener(Event.INIT, initListenerPic);
    var urlClipPic:URLRequest = new URLRequest(mm);
    loaderPic.load(urlClipPic);
    function initListenerPic(event:Event):void {
    addChild(loaderPic.content);
    } catch (illegalOperation:IllegalOperationError) {
    trace("Ошибка");
    button_mc.buttonMode = true;

    My question was too difficult for everyone?
    Nobody has been able to help.
    I thought that in this forum a lot of professionals.
    It seems - I was wrong.
    If there is someone who can help, contact us.
    [email protected]

  • Would like to allow PDF files to open straightway in the browser rather asking for open save option. pls help

    I m running a website on intranet. while accessing pdf file more than 8 MB in size. A window having Openwith, Save option pops up. i would like firefox to open PDF files of any size strightway in the browser without pop ups. Please help
    Thanks in anticipation

    kearly - thanks a million for posting both the question & the reply! I just unchecked that little box by accident, & couldn't figure out for the life of me how to fix it. Thanks again!!

  • I want a "request for service" form I would like the form user to be able to indicate which Prior order the request relates

    Our E-commerce site sells furniture and as such we will have customer service claims or reports filed, all sales are made through a secure zone as are any service requests.. I would like the customer to be able to choose which of their past orders the claim relates to and which product code from the existing product listing it relates to.. any ideas on how I can go about this??
    Many thanks Sara

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • How do I create a slide where users can upload a file to server or email a file?

    Could anyone guide me in how I could go about creating a slide where users can either email a file or upload it to my server?
    Any help would be greatly appriciated...
    Steve

    Hello,
    Welcome to Adobe Forums.
    I am not sure how you can Upload a file, you might need a Javascript.
    You can create a slide and a button of that slide can call the default Email client (MS Outlook, Outlook Express....)
    1) On  you Slide insert a button (Insert -> Standard Object -> Button
    2) Double Click on that button and select "Open URL or file" for On Success (Under Properties Inspector)
    3) Write "mailto:[email protected]" in the URL box (For Example : [email protected])
    4) Publish the result, when you click on the button, it will call the default mail client.
    Screenshot :
    Note : This might not work if you have a Network Security which do not allow calling Mail Client through a Script (Clicking of Button calls the script)
    Thanks,
    Vikram

  • I have ipad2 and would like to know how to move pictures in a designated album to creat a slideshow

    I am having trouble making a slideshow within a designated album as I would like to move the pictures into a certain order.

    You can't change the order of the photos in an album in the photos app once the album has been created. You would have to add the photos to an album in the order in which you want them to appear in the slideshow. Create another album and add the photos to the new album in the proper order that you want to use,

  • We use a raid server set up for apple, would like to set up a raid independent of the server to copy files

    we are using a apple server for raid setup. we have a set of bad raid discs that we would like to copy info from, but do the copying independent of the server. how do we accomplish this.

    I don't understand quite what you're asking. Can you provide more detail of what you're trying to do?

  • [SOLVED] Would like to allow a user to remotely reboot my box [SOLVED]

    Hello,
    Here's my problem, I've got two boxes gypsy and crow and gypsy has a habit of having the display lockup, I don't think the system is completely locked up so I'm pretty sure I can ssh and reboot it (since I set up ssh on gypsy, the box hasn't actually locked up, though, so I don't know for sure)
    Becuase I'm paranoid, I don't want to allow ssh into gypsy to do anything BESIDES reboot, so I'm interested in what's the best way to implement this.  I could stick the reboot command into .bash_profile for my dedicated reboot user, but if you're fast enough w/ ^c you (where you are, presumably, automated cracking software) could, concievably, kill the process before it's done running, and end up logged in. 
    This is going to be continued in a browser that isn't links.
    Edit: Continued:
    So I tried writing a shell script
    #!/bin/bash
    sudo reboot
    and using that script as the login shell for the dedicated reboot user ("rebooter"), but I would get a permission denied error when I tried to login as the user then.  (My sudoers file allows the user "rebooter" to run reboot w/o a passwd).  So it seems like in princple you could make this work, I'm just doing somthing wrong.
    But this raises another question, could I still manage to login to bash by interupting this script?  I don't think so, becuase in this instance bash is not running interactively, please tell me if I"m wrong.
    Is there maybe a better way to set this up?  Maybe there's something I can do with the config to sshd to force login by the "rebooter" to force a reboot? 
    I guess there might also be some way for me to set things up with chroot so that if you managed to login as "rebooter" you couldn't do anything meaningful besides reboot anyway, but I haven't looked into this yet.  If this is the best answer, go ahead and tell me to rtfm, but first I'd like to know if there's a simpler solution.
    Last edited by pseudonomous (2008-09-27 00:57:23)

    carlocci wrote:
    you could change the user shell to something like this
    carlocci:x:1000:100:sig. carlocci,,,:/home/carlocci:/usr/bin/sudo shutdown now -r
    or
    carlocci:x:1000:100:sig. carlocci,,,:/home/carlocci:/bin/bash -c sudo shutdown now -r
    I tried this, and it didn't work, I think it gave me "permission denied" errors, so I wonder if I got the syntax wrong.  what I was doing was using "usermod -s " to try and change the shell and I was confused as to how to properly put the white space in you need to run the command "sudo reboot".
    Thanks, everybody for your suggestions, I will look more into an ssh key based-authentication.  I don't really want to run webmin becuase I don't need to any remote administration besides rebooting, so webmin seems like overkill.   I will report back after trying to set this up.
    When I say "display locks up" I mean that, for some reason, either after boot or after I end a window manager session, my screen turns black and it looks like X is trying to restart but failing (there's a change in the shading on my monitor I associate with that)  hitting control alt backspace doesn't help and trying to switch to one of the consoles doesn't work either.  But I don't think the system is dead becuase I can toggle numlock and scrolllock on and off.  (Which doesn't work when X completely freezes)  I can't replicate this behavior on demand, it seems to occur more or less randomly.

Maybe you are looking for

  • Drop IE connection if PAC file not found

    When users are in the corporate network, their machines will grab the PAC file and use it. However, when they bring the machine back, since the machines are unable to grab the PAC file (without VPN), IE revert to direct connection, hence bypass PAC f

  • Values carried over from SDCR to SDMJ

    Hi All, does anyone know where we can control which values are carried over from a change request (SDCR) to a normal correction (SDMJ)? I know how where the partner functions are carried over but want to know where things like external reference numb

  • Extra Phantom display reported

    I've tried a search but I'm not sure how to phrase this problem. I have a 2006 mac pro with 2 x NVIDIA GeForce 7300 GT installed from new. I have always run 3 monitors, a 20" Viewsonic LCD in the middle and 2 x 19" CRT's either side (Samsung on the l

  • Web Integration Developer: extracting data with regular exressions

    The WIDL Dev User Guide is pretty thin when discussing pattern matching and how to create complex regular expressions for data extraction. It apparently asssumes that one already knows how to do this. Does anyone have a reference for a more detailed

  • KIN Two "m"

    Okay, I've had this piece of crap for quite some time now. Im very close to breakin it with a sledge hammer! This phone does not want to recieve text messages, and freezes when I try to open them. This phone lacks basic features an ordinary flip phon