Sunday, November 18, 2012

Re: [Rails] Search for a word in a file before uploading

All rb files are executed in the server.  If you want to check the 
file *before* uploading it you will have to do it in the client pc, 
presumably in javascript.  I don't know whether this is even possible, 
I doubt it.  Do you think it would be a good thing if a web page could 
look inside files on your pc?  I think you will have to upload it and 
then do the work. 

Are you a beginner at rails?  If so then I suggest you work through a 
good tutorial such as railstutorial.org (which is free to use online). 

Colin 

All rb files are executed in the server. Yeas, but when you try to upload a file that already exists in the database, it does not let you do so. So, it is possible to validate a file, namely a file name or extension or size  before uploading the file. Is it possible to do the same thing with the "word finding"?  Or it is two different things?
And I have looked through that tutorial already. Thank you=)

Katja

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/r8Rft2xNThgJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate