File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/io/nbs/client/listener Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class IPFSFileUploader {
3939 private static Logger logger = LoggerFactory .getLogger (IPFSFileUploader .class );
4040 private static IPFS ipfs ;
4141 private AttachmentInfoService service ;
42- public static int MAX_SIZE = 2000 *1024 *1024 ;
42+ public static long MAX_SIZE = 3000 *1024 *1024 ;
4343 private PeerInfo cureent ;
4444 private MessagePanel messagePanel ;
4545 private List <MessageItem > messageItems ;
@@ -86,7 +86,7 @@ public MerkleNode addByteFileToIPFS(File file) throws FileTooLargeException {
8686 String fname = file .getName ();
8787 long size = file .length ();
8888 if (size >MAX_SIZE ){
89- throw new FileTooLargeException ("上传文件【" +fname +"】超过" +DataSizeFormatUtil .formatDataSize (( long ) MAX_SIZE )+"限制." );
89+ throw new FileTooLargeException ("上传文件【" +fname +"】超过" +DataSizeFormatUtil .formatDataSize (MAX_SIZE )+"限制." );
9090 }
9191 int len = (int )size ;
9292 byte [] lagerBytes = new byte [len ];
You can’t perform that action at this time.
0 commit comments