Permalink
Browse files

moved yaws_multipart.erl to src, so remove from examples

  • Loading branch information...
1 parent 6b3f0cc commit cebdd43ec91410c7e765ec44d8f08da56f39f249 @vinoski vinoski committed Sep 30, 2009
Showing with 2 additions and 9 deletions.
  1. +1 −3 www/upload.yaws
  2. +1 −6 www/upload0.yaws
View
@@ -7,9 +7,6 @@
<a href="code.yaws?file=/upload.yaws">here in file upload.yaws</a>
</p>
- <p>A more extensive example is <a href="code.yaws?file=/yaws_multipart.erl">
- available here</a>.
- </p>
<erl>
@@ -38,6 +35,7 @@ err() ->
multipart(A, State) ->
Parse = yaws_api:parse_multipart_post(A),
case Parse of
+ [] -> ok;
{cont, Cont, Res} ->
case addFileChunk(A, Res, State) of
{done, Result} ->
View
@@ -17,12 +17,7 @@ out(A) ->
],
[{input, [{type, submit}, {value, "Upload"}] ,[]},
{input, [{type,file}, {width, "50"}, {name, "foo"}], []}
- ]},
- {br,[],[]},
- {hr,[],[]},
- {p, [], ["You can also find a more extensive example in ",
- {a, [{href, "code.yaws?file=/yaws_multipart.erl"}],
- "yaws_multipart.erl"}, "."]}]}}},
+ ]}]}}},
{ssi, "END2",[],[]}].
</erl>

0 comments on commit cebdd43

Please sign in to comment.