This article is a mirror article of machine translation, please click here to jump to the original article.

View: 4083|Reply: 2

Detailed explanation of the storage rules for Discuz attachment images, avatar pictures, and album images

[Copy link]
Posted on 11/5/2022 12:02:22 PM | | |
Requirements: Study the Discuz avatar path storage rules, synchronize the avatar to other website applications, and do not call the Discuz interface to load avatar resources.

Avatar rules

User uid is: 1800(Generate a 9-bit UID string that is not long enough to be preceded by 0

Corresponding avatar address:https://域名/uc_server/data/avatar/000/00/18/00_avatar_big.jpg(Large size)

The interface address: /uc_server/avatar.php?uid=1800&type=virtual&size=big, and the source code is as follows:



Profile Picture Address Generation Rules:




Attached picture

Store in different directories according to the upload time, the rules are as follows:




Photo gallery images

The difference is that it is stored in different subdirectories under attachment, and the rules are as follows:


(End)




Previous:The configured user limit (128) on the number of inotify instances has ...
Next:[Actual combat]. NET/C# application crashes and exceptions automatically generate DMP dump files
Posted on 11/8/2022 9:56:40 AM |
Learn first
 Landlord| Posted on 11/20/2022 10:52:50 AM |
C# version to get the dz avatar code:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com