Update filepost.py

bug fixed for long-type data