package com.patzn.lims.common;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 上传工具类
 * </p>
 *
 * @author hubin
 * @since 2018-06-12
 */
public class UploadUtils {

    /**
     * <p>
     * 是否支持断点续传
     * </p>
     *
     * @param request
     * @return
     */
    public static boolean resumeUpload(HttpServletRequest request) {
        return null != request && request.getHeader("content-type") != null
                && "application/x-www-form-urlencoded".equals(request.getHeader("content-type"));
    }
}
