Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialHezi Akiva
346 Pointsi want to build a script that sends file to other computer can i do it with javascript ?
i want to build a script that sends file to other computer can i do it with javascript ?
1 Answer
Iain Simmons
Treehouse Moderator 32,305 PointsSo, it depends on what you mean by 'send'. You could achieve this with HTML forms if one user uploads a file and then the other would download it from the server it was uploaded to.
Or, if you ran a web server on one computer it could be set to receive the incoming files (you'd want to be careful of security considerations when doing this).
Otherwise I think you can use JavaScript in the newer version of Mac OS X to script actions within the operating system. Transferring files over the network might be achievable, but it would assume the receiving computer had already accepted to receive files in this way.