We investigate the sensitivity of the anomalous dimension-8 neutral triple gauge couplings via process $ppto u ugamma$ with fast detector simulation including pile-up effects for the post LHC experiments. The transverse momentum of the final state photon and missing energy transverse distributions are considered in the analysis. We obtain the sensitivity to the $C_{widetilde B W}/Lambda^4$, $C_{B B}/Lambda^4$, $C_{WW}/Lambda^4$ and $C_{BW}/Lambda^4$ couplings at HL-LHC and HE-LHC with an integrated luminosity of 3 ab$^{-1}$ and 15 ab$^{-1}$, respectively. Finally, our numerical results show that one can reach the constraints at 95% confidence level without systematic error on $C_{widetilde BW}/Lambda^4$, $C_{B B}/Lambda^4$, $C_{W W}/Lambda^4$ and $C_{BW}/Lambda^4$ couplings for HL-LHC (HE-LHC) as [-0.38;0.38] ([-0.12;0.12]), [-0.21;0.21]([-0.085;0.085]), [-1.08;1.08]([-0.38;0.38]) and [-0.48;0.48]([-0.25;0.25]), respectively. They are better than the experimental limits obtained by LHC.