I have a text file with profanity word separated by comma (,). Now I have to create an array by reading this text file, each and every profanity word should be stored into t
Technically you can do by - http://www.phpletter.com/Our-Projects/AjaxFileUpload/
def upload_file
data = params['fileToUpload'].read
render :json => data.split(',')
end
< input type='file' size='25' name='fileToUpload'>