repair s3 attach file and asset precompile