fi.getInputStream());
if (charset == null)
charset = conf.getUploadCharset();
}
return fi.isInMemory() ?
new AMedia(name, null, ctype, fi.getString(charset)):
new ReaderMedia(name, null, ctype, fi, charset);
}
}
return fi.isInMemory() ?
new AMedia(name, null, ctype, fi.get()):
new StreamMedia(name, null, ctype, fi);
}