Skip to content
This repository
Browse code

[xfwang] 'filename' should be basename rather than a path

  • Loading branch information...
commit 2df54760289ab0a6b721a4144cb3c6f71a257ff8 1 parent 720328a
DevTrac Project authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 script/d7
5 script/d7
@@ -17,14 +17,15 @@ echo "session_id = $session_id"
17 17
18 18 cookie="$session_name=$session_id"
19 19
20   -image_path="script/site_image.png"
  20 +image_name="site_image.png"
  21 +image_path="./script/${image_name}"
21 22 image_data_file="${image_path}.data"
22 23
23 24 openssl enc -base64 -in $image_path | tr -d '\n' > "$image_data_file"
24 25
25 26 image_size=`cat ${image_path}.data | wc -c | tr -d ' \n'`
26 27
27   -post_data="uid=$user_id&filesize=$image_size&filename=$image_path"
  28 +post_data="uid=$user_id&filesize=$image_size&filename=$image_name"
28 29
29 30 echo
30 31

0 comments on commit 2df5476

Please sign in to comment.
Something went wrong with that request. Please try again.