Results 1 to 6 of 6

Thread: Using iframe For Photo Upload

  1. #1
    Join Date
    Jan 2010
    Posts
    52

    Using iframe For Photo Upload

    Hello, I am creating the Widget for for uploading the photos. And when you will able to upload the images, that application will simply show that uploaded images. I am making use of the HTTP Post for REST API. And that api will simply give you XML file which will contain the list of the uploaded photos. I am making use of the iFrame for uploading the Photos. I am making use of the code below for this purpose.
    Code:
    $('#fileUploadFrame').load(function() { ... });
    But, I am not able to get the xml file. If you are having any suggestion for this, then please provide that to me. I will be thankful to you.

  2. #2
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Using iframe For Photo Upload

    Hello, if you are not able to get the required xml file, then you must need to make use of the following syntax for your purpose. It will simply solve your problem. I think you are getting the problem due to the problem of the syntax. So, simply try out the syntax below and get solved for your problem. It is just needed to make use of the code below:

    Code:
    var fileOfXml = document.getElementById('upload').contentWindow.document;

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Using iframe For Photo Upload

    Hello, you need to checkout the settings for your computer. It may be possible that the problem you are getting is not due to the problem of your code, but the some of the security reason. As many times, it may be possible that due to the restrictions from the Firewall such as restriction to the file which is coming from the server. It will simply solve your problem. You just need to make use of that and you will able to get the solution for your problem.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Using iframe For Photo Upload

    Hello, if you are making use of the Fifth edition then you can simply make use of the code below. The below mentioned one line code you need to add in your program and then you will able to receive that file. I have already used that and it is working for me. So, just use that and get solved the problem by receiving the file.

    Code:
    alert(document.getElementById("uploadFile").contentDocument.body.innerHTML);

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: Using iframe For Photo Upload

    Hello, you can simply make use of the APIBridge for this problem. It is having the features as below:
    • You can simply upload the file.
    • You will able to capture the video, image
    • It can read the files.
    • You can able to resize the image.
    • You will able to create the thumbnail of image.

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Using iframe For Photo Upload

    Hello, if you are getting the problem while getting the Xml file you must need to check the code for your accepting that file. As there must be you have done something wrong and due to that problem you are getting the problem. So, simply do that and get solved for your problem. You must be getting the problem due to the problem in your coding. So, for solving that you must need to use the right syntax.

Similar Threads

  1. How to upload photo on facebook by using Nintendo 3DS?
    By Mr.Ghost in forum Portable Devices
    Replies: 3
    Last Post: 16-02-2012, 03:28 PM
  2. My Samsung Galaxy S is not able to upload my photo on pc
    By Martyna in forum Portable Devices
    Replies: 3
    Last Post: 30-07-2011, 08:05 AM
  3. HTC Sensation-Not able to upload photo via Picasa
    By Edi in forum Portable Devices
    Replies: 6
    Last Post: 18-07-2011, 10:42 PM
  4. MSN Photo Upload Control
    By Vayya in forum Technology & Internet
    Replies: 3
    Last Post: 02-06-2010, 06:50 AM
  5. Replies: 0
    Last Post: 01-12-2008, 06:40 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,502,450.97683 seconds with 16 queries