Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Hezi Akiva
Hezi Akiva
346 Points

i 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

So, 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.