OWASP / DevGuide

The OWASP Guide
Other
2.04k stars 382 forks source link

access_control_models.png #28

Closed jkickens closed 10 years ago

jkickens commented 10 years ago

access_control_models

frenchi commented 10 years ago

@jkickens I'm noticing a lot of issues getting created for image upload purposes. The downside of this is that everyone watching the project gets a notification when it's created & closed.

If the goal is to link to the image in the wiki/guide, it's possible to include the images in bulk, in the repository structure, and then get their raw image url.

Is that the intended purpose of current issue creation? If so, happy to help out, if needed.

jkickens commented 10 years ago

Yes, that is the intention. If you could tell me a better way, I'm happy to redo the images.

Jerry

Sent from my iPad

On Jul 5, 2014, at 9:24 AM, French notifications@github.com wrote:

@jkickens I'm noticing a lot of issues getting created for image upload purposes. The downside of this is that everyone watching the project gets a notification when it's created & closed.

If the goal is to link to the image in the wiki/guide, it's possible to include the images in bulk, in the repository structure, and then get their raw image url.

Is that the intended purpose of current issue creation? If so, happy to help out, if needed.

— Reply to this email directly or view it on GitHub.

frenchi commented 10 years ago

The link above is the preferred way of getting static image URL: https://help.github.com/articles/adding-images-to-wikis

Step-by-step example using this image, and the ./03-Build/images folder you created: Include the images in your local repository structure

cd <DevGuide_repo_location>
mv <image_location>/access_control_models.png ./03-Build/images/
git add .

Push them to github

git commit -am 'Add access_control_models.png'
git push origin master

Visit the file's location in your browser (by browsing through the repo's page, or directly):

firefox https://github.com/OWASP/DevGuide/blob/master/03-Build/images/access_control_models.png
# not actually created, will 404
click on raw

click on raw

alternatively: change the "blob" in the url to "raw", and Bob's your uncle:

firefox https://github.com/OWASP/DevGuide/raw/master/03-Build/images/access_control_models.png

Once the files are on github, any raw file can be referenced with the general URL structure:

https://github.com/OWASP/DevGuide/raw/master/<path_to_file>

Hope that helps, French