cancel
Showing results for 
Search instead for 
Did you mean: 

WDWebResourceType ZIP

Former Member
0 Kudos

Hi all,

I want to download several type of files and for each of them I'm specifying the right MIME type with WDWebResourceType. How can I specify the right MIME type for ZIP files???

Thanks

Stefano

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Try out giving WDWebResourceType.UNKNOWN type.

Regards

Akshaya

Former Member
0 Kudos

Hi,

I've already done it but this is a workaround, not a solution.

Using MIME type unknown the system asks only to save or cancel and during save process it doesn't provide the right file extension.

Is there any other way?

Thanks

Stefano

Former Member
0 Kudos

Hi,

Following are the Types

/** Constant identifying a gif web resource type. */

public static final WDWebResourceType GIF_IMAGE;

/** Constant identifying a jpg web resource type. */

public static final WDWebResourceType JPG_IMAGE;

/** Constant identifying a vml web resource type. */

public static final WDWebResourceType VML;

/** Constant identifying a png web resource type. */

public static final WDWebResourceType PNG;

/** Constant identifying a svg web resource type. */

public static final WDWebResourceType SVG;

/** Constant identifying a Java script web resource type. */

public static final WDWebResourceType JAVA_SCRIPT;

/** Constant identifying an xml web resource type. */

public static final WDWebResourceType XML;

/** Constant identifying a css web resource type. */

public static final WDWebResourceType CSS;

/** Constant identifying a Java web resource type. */

public static final WDWebResourceType JAVA;

/** Constant identifying an applet web resource type. */

public static final WDWebResourceType APPLET;

/** Constant identifying a flash web resource type. */

public static final WDWebResourceType FLASH;

/** Constant identifying a pdf web resource type. */

public static final WDWebResourceType PDF;

/** Constant identifying an html web resource type. */

public static final WDWebResourceType HTML;

/** Constant identifying a Web Dynpro application. */

public static final WDWebResourceType WD_APPLICATION;

/** Constant identifying a xml configuration file. */

public static final WDWebResourceType XML_CONFIGURATION;

/** Constant identifying a txt file. */

public static final WDWebResourceType TXT;

/** Constant identifying unknown file. */

public static final WDWebResourceType UNKNOWN;

/** Constant identifying powerpoints. */

public static final WDWebResourceType PPT;

/** Constant identifying rich text files. */

public static final WDWebResourceType RTF;

/** Constant identifying excel files. */

public static final WDWebResourceType XLS;

/** Constant identifying word files. */

public static final WDWebResourceType DOC;

/** Constant identifying post script files. */

public static final WDWebResourceType PS;

So i think u need to use the UNKNOWN.

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,

I'm still looking for a solution since the behaviour of browser is very different from type UNKNOWN to ZIP.

Any ideas?

Stefano

Answers (0)