如何使用node.js上传目录? [英] How can you upload directory using node.js?

查看:64
本文介绍了如何使用node.js上传目录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是node的新手,想使用node.js上传目录.有人可以帮忙吗?谢谢你如果有可能怎么办?如果没有,那为什么呢?

I'm new to node and want to upload directory using node.js. Can anybody please help? Thank You If it's possible how? and if not then why?

推荐答案

您只能上传文件.
但是有解决方法,您可以

you can upload only files.
however there are workarounds,you can

  1. 将文件夹覆盖到一个zip文件(客户端)中,这实际上取决于您的情况.
  2. 上传zip文件
  3. 然后将其解压缩到服务器中

您可以使用google来了解如何完成这些操作的每一步.

you can use google to find out how to do every step of those.

这篇关于如何使用node.js上传目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆