how to upload image on youtube?

Status
Not open for further replies.

Devilzhangout

Old School
Original poster
old school
member
Joined
Feb 22, 2010
Posts
201
Reaction score
1
Points
52
Location
In Your Hear
Can any one suggest me how to upload youtube avtar
Code:
http://www.youtube.com/account_dialog_profile_picture

i am trying to submit image location over here
Code:
<input id="image-file" name="imagefile" type="file" size="30px"/>

pls i really need help thanks in advance.
 

xNSX

Member
member
Joined
Aug 12, 2011
Posts
352
Reaction score
31
Points
31
Location
GettingMoney
on the youtube home page click your name go to settings then your avatar should be there just click change and upload your image.
 
R

rob2k9

Guest
ok first you want to check the check box to up load by doing this

Code:
For Each input As HtmlElement In Me.WebBrowser1.Document.GetElementsByTagName("input")
            If input.GetAttribute("type") = "radio" Then
                input.SetAttribute("checked", "true")
            End If
        Next
then you want to enter your file location by so

Code:
Webbrowser1.Document.GetElementbyID("image-file").SetAttribute("value", textbox1.text)

and then put the location of the image in a text box on your form

now you want to click save :)

Code:
For Each input As HtmlElement In Me.WebBrowser1.Document.GetElementsByTagName("button")
            If input.GetAttribute("class") = "yt-uix-button" Then
                input.InvokeMember("click")
            End If
        Next
 

Devilzhangout

Old School
Original poster
old school
member
Joined
Feb 22, 2010
Posts
201
Reaction score
1
Points
52
Location
In Your Hear
is it correct ?
Code:
WebBrowser1.Navigate("http://www.youtube.com/account_profile")
        Delay(1)
        For Each input As HtmlElement In Me.WebBrowser1.Document.GetElementsByTagName("input")
            If input.GetAttribute("type") = "radio" Then
                input.SetAttribute("checked", "true")
            End If
        Next
        Delay(2)
        WebBrowser1.Document.GetElementById("image-file").SetAttribute("value", TextBox1.Text)
        Delay(1)
        For Each input As HtmlElement In Me.WebBrowser1.Document.GetElementsByTagName("button")
            If input.GetAttribute("class") = "yt-uix-button" Then
                input.InvokeMember("click")
            End If
        Next
        WebBrowser1.Navigate("http://www.youtube.com/account_profile")
 
Status
Not open for further replies.