Question: Hi can you help me with uploading a file in Safari ,Mac OS.

I have given a site were we can upload the following types of file by clicking "Choose File" Button(JPG, PNG, GIF, DOC, XLS, PDF, ZIP, RAR, ZIPX) 

```
package Default;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.safari.SafariDriver;

public class Safari_demo {

    public static void main(String[] args) throws InterruptedException{

        WebDriver driver = new SafariDriver();

        driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

        Thread.sleep(6000);

        driver.get("http://www.files.com/");

        driver.findElement(By.id("uploadFields")).click();

        //can you please help me with code in this line 
        //this is the place were i need to enter the address of the
        //file which is in my system  

        driver.close();
    }

}

```

Answer: 
It seems that SafariDriver doesn't support file uploads: <https://code.google.com/p/selenium/issues/detail?id=4220>
try this.

```
fd.findElement(By.xpath(".//*[@id='uploadFields']/input"))
                .sendKeys(
                        "your image path");

```