例如,我们可能会规定上传的大小限制或者可接受的文件类型,甚至我们可能会对文件名进行限制。
For example, we might specify how large uploads can be or what types of files are acceptable, or we could even impose restrictions on file names.
为此,需要添加代码来处理上传,解析文件名,以及创建与上述模式相匹配的目录路径。
To do so, you need to add code to handle the upload, parse the file name, and create the directory paths to match the scheme above.
如果您省略了目标文件名,那么curl将简单地重用上传文件的名称。
If you omit the target file name, curl simply reuses the name of the file being uploaded.
应用推荐