OWASP / DevGuide

The OWASP Guide
Other
2.04k stars 381 forks source link

GitHub does not have an official image/file upload interface - workaround inside #17

Closed bradchesney79 closed 8 years ago

bradchesney79 commented 10 years ago

Via drag (from your device/PC) and drop (to GitHub Issues, i.e. here) you can upload to GitHub.

Once it is in the issue, you can view the image resource or page source to see where GitHub is storing it.

bradchesney79 commented 10 years ago

owasp_user_based_registration

DinisCruz commented 10 years ago

Shouldn't those images be on specific folders (and managed by git)? On 4 Jun 2014 16:55, "BradChesney79" notifications@github.com wrote:

Via drag (from your device/PC) and drop (to GitHub Issues, i.e. here) you can upload to GitHub.

Once it is in the issue, you can view the image resource or page source to see where GitHub is storing it.

— Reply to this email directly or view it on GitHub https://github.com/OWASP/DevGuide/issues/17.

bradchesney79 commented 10 years ago

...sort of. I work on it at work-- where there is a nazi regime type IT department and we run Windows. (I know, find a hole and install cygwin. But, you'd find my lack of motivation to do so disturbing.) I will eventually back fill from home on my linux machine from a forked folder managed by Git.

However, I am not sure how to address the file in the markdown without a URI. Yet. By doing this it is 'owned' and 'stored' on GitHub as the host for me to reference in the markdown.

Might I add I am doing my UML on my phone... like usual. It gets me to a place where I can give my source files and move on.

I'm liking that you are picking on my GitHub usage and not my diagram. So, the diagram must be okay...

frenchi commented 10 years ago

You are able to get the URI of images and other file types by getting their "raw" link, eg:

https://raw.githubusercontent.com/OWASP/DevGuide/master/DevGuide1.1.1/images/HTTP_digest.png

This is possible by changing the domain to https://raw.githubusercontent.com with the same /path/to/file, or by navigating to the file on github's site and clicking on "Raw".

screen shot 2014-06-05 at 3 36 12 pm

bradchesney79 commented 10 years ago

You assume the IT department where I work allows me to push & pull-- let alone install software.

I'm in the "super weird hardware department", so I hold no sway over those Windows server weenies.

Did anyone order some foundation fieldbus? I've got some DeviceNet. What about some ASi? Second hand DCS... cheap!

bradchesney79 commented 10 years ago

(I will push properly from home if I get a break between work, school, and my family.)

frenchi commented 10 years ago

You live in a world that scares me.

On Wed, Jun 11, 2014 at 9:32 AM, BradChesney79 notifications@github.com wrote:

(I will push properly from home if I get a break between work, school, and my family.)

— Reply to this email directly or view it on GitHub https://github.com/OWASP/DevGuide/issues/17#issuecomment-45685501.

Sam Stewart

_Co-founder_Claiming.com.au http://Claiming.com.au

+61 410 215 021 sam@claiming.com.au @nfFrenchie https://twitter.com/nffrenchie

frenchi commented 10 years ago

Adding the Github Help article about image uploads.

The downside of the issue creation method is that it creates an excess of notifications for all watchers of the repository.

bradchesney79 commented 8 years ago

Github has instituted a file upload interface/utility thingey.

DinisCruz commented 8 years ago

quick note, I have been using draw.io for diagrams and it is working really well (since it has both online and offline editing and the raw files are stored in xml, which you can see here https://github.com/DinisCruz/Security-Research/tree/master/pdfs/Threat-Modeling/Concepts )

bradchesney79 commented 8 years ago

I, at the very least, am switching to draw.io .

Thanks for the heads up about the tool.

DinisCruz commented 8 years ago

@bradchesney79 no worries, please share the diagrams that you create