Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
fletc4her #1
DWfile and Image Files
I am trying to read in an image files using DWfile.read() so that I can post it
to a server using a multi-part form for HTTP file upload. The DWfile.read()
function always returns NULL for this file. However, I am able to copy the
file from place to place so I know that it exists and that Dreamweaver can
access it generally. Can the DWfile.read() function be used to read in binary
image files or just text files? Any other ideas of what might be going wrong?
Thanks
[fletcher]
fletc4her Guest
-
DWfile.copy dies after the 1023 file
I have an extension that copies files from the Dreamweaver site folder to a staging folder using a recursive copy function. After copying 1023... -
DWfile.copy not working
I have an extension that I am building and I need to copy a file automatically from the config folder to the users local site when they apply the... -
DWfile.write returning 0
I'm trying to create a temp file for my extension, but it isn't working, here is the code I'm using. ... -
Compare current date with DWfile.getCreationDate/Obj
Hey everyone! I have a new questions. I was curious if anyone already has a created function that will convert e current date into the hex format... -
Macintosh OS X Path Problems when using DWfile.exists
Hello, When working with a MACINTOSH OS X and when I try to do either a DWfile.exists( dreamweaver.getConfigurationPath() ); DWfile.exists(... -
danilocelic *TMM* #2
Re: DWfile and Image Files
fletc4her wrote:
Unfortunately, only good for text files.> I am trying to read in an image files using DWfile.read() so that I can post it
> to a server using a multi-part form for HTTP file upload. The DWfile.read()
> function always returns NULL for this file. However, I am able to copy the
> file from place to place so I know that it exists and that Dreamweaver can
> access it generally. Can the DWfile.read() function be used to read in binary
> image files or just text files? Any other ideas of what might be going wrong?
BTW: How were you going to do a form upload from within a DW extension?
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
danilocelic *TMM* Guest
-
fletc4her #3
Re: DWfile and Image Files
> Unfortunately, only good for text files.
I use MMHttp.postText(); It works fine for normal form content. To do the> BTW: How were you going to do a form upload from within a DW extension?
file upload I set the post method to multipart/form-data and format the post
appropriately. But, without being able to get the binary contents of the image
file the whole technique is moot.
[fletcher]
fletc4her Guest
-
danilocelic *TMM* #4
Re: DWfile and Image Files
fletc4her wrote:
Yep, it can't do file uploads.>>>Unfortunately, only good for text files.
>>> > BTW: How were you going to do a form upload from within a DW extension?
> I use MMHttp.postText(); It works fine for normal form content. To do the
> file upload I set the post method to multipart/form-data and format the post
> appropriately. But, without being able to get the binary contents of the image
> file the whole technique is moot.
--
Danilo Celic
| Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
| Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
danilocelic *TMM* Guest



Reply With Quote

