-d means your database,
-l means your local file system path to the file you will upload
put means you want to upload a file
CDBG_2015_1.pdf means the file name in GridFS( Not your local file system path )
mongofiles -d civilpdf -l C:\jh1\share_map_online\desktop_map_export\pdf\CDBG_2015_1.pdf put CDBG_2015_1.pdf
Then you could search file by keyword "CDBG"
mongofiles -d civilpdf search CDBG
You could download file to a whatever place you like as
mongofiles -d civilpdf -l "C:\your liked whatever place" get CDBG_2015_1.pdf
=======================================
in cmd for file path, you can use double quote "C:\jh1\share_map_online\desktop_map_export\pdf\pdf_to_jpg\City of Costa Mesa Zoning Map 2017.pdf"
if there is space or other special char,
----------------------------------------------------------------
mongofiles -d civilpdf list
mongofiles -d civilpdf search CDBG
mongofiles -d civilpdf get community_improvement_division_2017_Jan_18.pdf
mongofiles -d civilpdf get CDBG_2015_1.pdf
mongofiles -d civilpdf -l C:\jh1\share_map_online\desktop_map_export\pdf\CDBG_2015_1.pdf put CDBG_2015_1.pdf
mongofiles -d civilpdf -l C:\jh1\share_map_online\desktop_map_export\pdf\community_improvement_division_2017_Jan_18.pdf put community_improvement_division_2017_Jan_18.pdf
mongofiles -d civilpdf -l "C:\jh1\share_map_online\desktop_map_export\pdf\City of Costa Mesa Zoning Map 2017.pdf" put "City of Costa Mesa Zoning Map 2017.pdf"
mongofiles -d civilpdf -l C:\jh1\share_map_online\desktop_map_export\pdf\pdf_to_jpg\CDBG_2015_1.pdf get CDBG_2015_1.pdf
mongofiles -d civilpdf -l C:\jh1\share_map_online\desktop_map_export\pdf\pdf_to_jpg\community_improvement_division_2017_Jan_18.pdf get community_improvement_division_2017_Jan_18.pdf
mongofiles -d civilpdf -l "C:\jh1\share_map_online\desktop_map_export\pdf\pdf_to_jpg\City of Costa Mesa Zoning Map 2017.pdf" get "City of Costa Mesa Zoning Map 2017.pdf"
No comments:
Post a Comment