function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDC demoSFDC demo 

how to get an attachment form web to lead

here, my requirments i am create a new lead form web to lead form, insert to attachments objects is it possiable ?
could you send me sample code using javascript or rest api 
RamuRamu (Salesforce Developers) 
Not possible by standard functionlaity but you can either build your own interface based on some other technologies or use the ready made app 'Formassembly'. 

http://www.formassembly.com/blog/5-reasons-to-use-formassembly-instead-of-salesforces-web-to-lead-form/

There is a request by lot of users on the same in salesforce idea exchange forum, 

https://success.salesforce.com/ideaView?id=08730000000BrjE
 
Parvinder SinghParvinder Singh
Or you can do a simple force.com site and host a visualfroce page to capture the attachement.
SOQUEL LLCSOQUEL LLC
Recently i did a project for a non profit who has the similar requirements ,check my blog for the solution  http://www.soquelllc.com/blog/2014/11/19/web-to-lead-with-attachments/