-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
121 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
# Up files to ipfs | ||
# up2ipfs | ||
Upload files to IPFS. | ||
|
||
Default upload gateway: api=http://127.0.0.1:5001 | ||
## Deploy & Use | ||
Just copy (upload) was completed the deployment. (All are static pages, Work with MFS on IPFS) | ||
Append api and(or) gw parameters when opening the url. | ||
|
||
Or | ||
?api=i0.img2ipfs.com | ||
?api=cdn.ipfsscan.io | ||
Or ( selfhost ) | ||
?api=api.sample.com ( Default https ) | ||
?apt=http://api.sample.com | ||
Test URL: <a href="https://i0.img2ipfs.com/ipns/nmr.mzltd.win/up2ipfs/?api=api.nmr.mzltd.win">/ipns/nmr.mzltd.win/up2ipfs/</a> | ||
|
||
<a href="https://ipfs.github.io/public-gateway-checker/">More gateway</a> | ||
## Instructions for Advanced Users. | ||
### Selfhost IPFS api and gw | ||
api = http://127.0.0.1:5001 (Default setting) | ||
gw = http://127.0.0.1:8080 | ||
Full parameter Url: | ||
hxxps://ipfs.io/ipfs/<cid>/?api=http://127.0.0.1:5001&gw=http://127.0.0.1:8080 | ||
### Some public api and(or) gateway(gw) | ||
ipfs.io ( 'https://' can be omitted ) | ||
cdn.ipfsscan.io | ||
gateway.v2ex.pro | ||
|
||
<a href="https://ipfs.github.io/public-gateway-checker/">Find More Gateway</a> | ||
|
||
UI form img2ipfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>IPFS</title> | ||
<title>up2ipfs</title> | ||
<meta name="keywords" content="IPFS"> | ||
<link rel="stylesheet" href="./static/style.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script> | ||
<script src="./static/file.js" defer></script> | ||
</head> | ||
|
||
<body> | ||
<input id="file" type="file" multiple style="display: none;"> | ||
<div class="container"> | ||
<div class="upload"> | ||
<div class="title"> | ||
Up2IPFS<small style="font-size:10px;">(Up files to ipfs)</small> | ||
Up2IPFS<small style="font-size:12px;">(Up files to ipfs)</small> | ||
</div> | ||
<div class="content" id="dragbox"> | ||
<svg class="icon" viewBox="0 0 1335 1024" xmlns="http://www.w3.org/2000/svg"> | ||
<path d="M1097.060174 392.125217C1073.730783 172.966957 893.261913 0.378435 666.089739 0.378435c-227.127652 0-415.610435 171.920696-430.948174 391.746782C101.910261 415.454609 0 525.356522 0 666.601739c0 149.147826 125.239652 274.476522 274.476522 274.476522h195.828869v-78.669913H274.476522a193.691826 193.691826 0 0 1-195.940174-195.806609c0-102.021565 70.678261-180.580174 172.588522-195.917913l54.561391-8.013913 8.013913-62.553043c16.005565-180.580174 172.588522-321.157565 352.389565-321.157566 180.580174 0 337.029565 141.356522 352.389565 321.157566v62.553043l62.664348 8.013913c101.910261 16.005565 172.477217 93.896348 172.477218 195.917913 0 109.901913-85.904696 195.806609-195.806609 195.806609h-195.917913v78.580869h196.029217c149.147826 0 274.476522-125.261913 274.476522-274.476521 0-141.133913-101.999304-259.072-235.25287-274.387479" fill="#909399"></path> | ||
<path d="M612.218435 364.766609l1.335652 2.003478L389.698783 590.58087l55.229217 55.362782 181.938087-181.938087V1018.88h78.558609v-78.58087h156.471652-156.471652V458.039652l183.808 183.919305 55.340521-55.340522-277.147826-277.058783-55.229217 55.229218z m-141.913044 575.666087h156.471652-156.716521 0.222608z" fill="#909399"></path> | ||
<path | ||
d="M1097.060174 392.125217C1073.730783 172.966957 893.261913 0.378435 666.089739 0.378435c-227.127652 0-415.610435 171.920696-430.948174 391.746782C101.910261 415.454609 0 525.356522 0 666.601739c0 149.147826 125.239652 274.476522 274.476522 274.476522h195.828869v-78.669913H274.476522a193.691826 193.691826 0 0 1-195.940174-195.806609c0-102.021565 70.678261-180.580174 172.588522-195.917913l54.561391-8.013913 8.013913-62.553043c16.005565-180.580174 172.588522-321.157565 352.389565-321.157566 180.580174 0 337.029565 141.356522 352.389565 321.157566v62.553043l62.664348 8.013913c101.910261 16.005565 172.477217 93.896348 172.477218 195.917913 0 109.901913-85.904696 195.806609-195.806609 195.806609h-195.917913v78.580869h196.029217c149.147826 0 274.476522-125.261913 274.476522-274.476521 0-141.133913-101.999304-259.072-235.25287-274.387479" | ||
fill="#909399"></path> | ||
<path | ||
d="M612.218435 364.766609l1.335652 2.003478L389.698783 590.58087l55.229217 55.362782 181.938087-181.938087V1018.88h78.558609v-78.58087h156.471652-156.471652V458.039652l183.808 183.919305 55.340521-55.340522-277.147826-277.058783-55.229217 55.229218z m-141.913044 575.666087h156.471652-156.716521 0.222608z" | ||
fill="#909399"></path> | ||
</svg> | ||
<p class="desc">Click / Paste / Drag to upload</p> | ||
</div> | ||
</div> | ||
<div class="filelist"> | ||
<div class="title"> | ||
upload list | ||
</div> | ||
<div class="select-group"> | ||
<label for="gatewaySelect">Gateway:</label> | ||
<select id="gatewaySelect" onchange="changeGateway(this);"> | ||
<option value="https://i0.img2ipfs.com">img2ipfs</option> | ||
<option value="https://cdn.ipfsscan.io">ipfsscan</option> | ||
<option value="https://ipfs.io">ipfs.io</option> | ||
</select> | ||
<div class="button-container"> | ||
<div class="select-group"> | ||
<label for="gatewaySelect">Gateway:</label> | ||
<select id="gatewaySelect" onchange="changeGateway(this);"> | ||
<option value="https://i0.img2ipfs.com">img2ipfs</option> | ||
<option value="https://cdn.ipfsscan.io">ipfsscan</option> | ||
<option value="https://gateway.v2ex.pro">v2ex.pro</option> | ||
<option value="https://ipfs.io">ipfs.io</option> | ||
<option value="http://127.0.0.1:8080">localhost</option> | ||
</select> | ||
</div> | ||
<button onclick="copyAllLinks();" name="xkx" id="copyAll" class="button">Copy All</button> | ||
</div> | ||
<div class="list"></div> | ||
</div> | ||
</div> | ||
<div id="footer" style="position:fixed;width: 100%;text-align: center;bottom: 0px;display: block;"> | ||
<div style="height: 20px"> | ||
<div class="info"> | ||
<a href="https://github.com/tlze/up2ipfs">This project</a> | | ||
<a href="https://github.com/tlze/up2ipfs">This project</a> | | ||
<a href="https://ipfs.github.io/public-gateway-checker/">More gateway</a> | ||
</div> | ||
</div> | ||
© 2023-2024 | ||
</div> | ||
</body> | ||
</html> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters