IBooks 1.5 looses file name when PDF moved from other apps in iOS 5.0.1 on iPad!
Opening a titled email PDF attachment in iBooks results in untitled document within ibook. The document transfers from email to good reader or other PDF reader applications without issue. It is an iBooks issue. This started in version 1.5. How can I load a previous version of iBooks?
Looking at the iTunes books tab the same document has a numerical value as the title.
The same thing happens if you open a titled PDF document in good reader and use the open with iBook button.
Anytime a document is sent to iBooks on the iPad, the title becomes blank in iBooks, but the title in iTunes is a 128 bit number.
How do you report such an issue to apple iBook team?
I am having a similar problem, the pdf "book" has one name on itunes on my mac, but on my ipad (IOS 5.0.1 build 9A405) the names are different. Plus pdf "books" keep disappearing. If I go into itunes on the Mac and make any change in the "get info" such as comment etc and resync the pdf shows up again.
Several days later the file again disappears from the ipad (no I am NOT deleting them and I have plenty of free memory on the ipad) and I have make yet another small change.
I did not encounter this behaviour in previous version of ibook.
Similar Messages
-
Incorrect file name when importing pictures from camera
I am using PE 10 on Mac Snow Leopard.
When I import pictures from my camera and select "Rename Files" with "Custom Date" + "Shot Date" (any format), the file name includes the custom name correctly, but the date part of the file name is some random date (with a weird year: 1913, 1969). Note the example shown on the Photo Downloader is usually the one used. The shot date in the meta data is usually correct. This appears to be similar to a problem when using the "Create Subfolder" option.
Any ideas why or a work-around?
I was using PE 8 and did not have this problem.Hi dannrendon2,
Have you successfully run the PSE10_Hot.dmg file? You will not see any change in PSE10 or PhotoDownloader , it is just for fixing the issue of incorrect date format .
Please follow all the steps mentioned in KB article link mentioned above. Finally when you installed the updater there would be a message of successful installation .
If there is a failure in your updating process [In your case it is second attempt of updation, there may be a failure] , uninstall your application , check if there is any residual file in application folder under Elements Organizer or Photoshop Elements (delete them). Now again install PSE10 and try to update PSE10_HotFix.dmg updater. There should be a successfully completed message.
Thanks,
Nizam -
Photoshop is changing file names when being accessed from EmbARK software
Files open up within PS when accessed from a share on the server. When attempting to save the file the name is always changed.
Here is the system info:
Adobe Photoshop Version: 11.0.2 (11.0.2x20100514 [20100514.r.591 2010/05/14:02:00:00 cutoff; r branch])
Operating System: Windows NT
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:10, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2
Physical processor count: 2
Logical processor count: 4
Processor speed: 3093 MHz
Video Card Vendor: Intel
Video Card Renderer: Intel(R) HD Graphics Family
OpenGL Drawing: Enabled.
Video Card: Intel(R) HD Graphics Family
Video Mode: 1600 x 900 x 4294967296 colors
Video Card Driver: igdumd64.dll,igd10umd64.dll,igd10umd64.dll,igdumdx32,igd10umd32,igd10umd32
Driver Version: 8.15.10.2312
Built-in memory: 2983 MB
Free memory: 998 MB
Memory available to Photoshop: 2488 MB
Memory used by Photoshop: 60 %
Image cache levels: 4
Serial number:
Application folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS4\
Temporary file path: C:\Users\ALLYSO~1.BUR\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
Startup, 222.6G, 121.7G free
Primary Plug-ins folder: C:\Program Files (x86)\Adobe\Adobe Photoshop CS4\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
ACE.dll ACE 2008/08/27-18:10:41 53.355610 53.355610
AdobeLinguistic.dll Adobe Linguisitc Library 4.0.0
AdobeLM.dll AdobeLM 3.0.11.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
AdobeLM_libFNP.dll FLEXnet Publisher (32 bit) 11.5.0.1 build 57427
AdobeOwl.dll Adobe Owl 2008/08/14-18:38:42 2.0.70 53.354161
AdobeOwlCanvas.dll Adobe Owl Canvas 2.0.70 53.354161
AdobePDFL.dll PDFL 2008/08/20-20:15:08 53.204060 53.204060
AdobeUpdater.dll Adobe Updater Library 6.0.0.1452 (BuildVersion: 52.338651; BuildDate: Wed Apr 16 2008 19:28:20) 52.338651
AdobeXMP.dll Adobe XMP Core 4.2.2 53.352624
AdobeXMPFiles.dll Adobe XMP Files 4.2.2 53.352624
AdobeXMPScript.dll Adobe XMP Script 4.2.2 53.352624
adobe_caps.dll Adobe CAPS 2,0,99,0 2.135373
adobe_epic.dll Adobe EPIC 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
adobe_eula.dll Adobe EPIC EULA 3.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
AFlamingo.dll AFlamingo 2008/07/09-11:28:44 53.350580 53.350580
AGM.dll AGM 2008/08/27-18:10:41 53.355610 53.355610
ahclient.dll AdobeHelp Dynamic Link Library 1, 3, 12, 0
aif_core.dll AIF 1.0 53.352475
aif_ogl.dll AIF 1.0 53.352475
amtlib.dll AMTLib 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
amtservices.dll AMTServices 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
ARE.dll ARE 2008/08/27-18:10:41 53.355610 53.355610
asneu.dll AsnEndUser Dynamic Link Library 1, 6, 0, 8
authplay.dll
AXE8SharedExpat.dll AXE8SharedExpat 2008/06/11-20:19:53 NFR 53.348206 53.348206
AXEDOMCore.dll AXEDOMCore 2008/06/11-20:19:53 53.348206 53.348206
Bib.dll BIB 2008/08/27-18:10:41 53.355610 53.355610
BIBUtils.dll BIBUtils 2008/08/27-18:10:41 53.355610 53.355610
cg.dll NVIDIA Cg Runtime 2.0.0015
cgGL.dll NVIDIA Cg Runtime 2.0.0015
CoolType.dll CoolType 2009/01/16-10:41:46 53.372607 53.372607
data_flow.dll AIF 1.0 53.352475
ExtendScript.dll ExtendScript 2008/07/17-13:28:24 53.351316 53.351316
FileInfo.dll Adobe XMP FileInfo 4.2.2 53.352624
FNP_Act_Installer.dll FLEXnet Publisher (32 bit) 11.6.0.1 build 60959
icucnv36.dll International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
icudt36.dll International Components for Unicode 2008/03/20-16:33:10 Build gtlib_1.1 CL#7223
image_flow.dll AIF 1.0 53.352475
image_runtime.dll AIF 1.0 53.352475
JP2KLib.dll JP2KLib 2008/06/11-20:19:53 53.100857 53.100857
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
MPS.dll MPS 2008/07/07-10:33:04 53.350311 53.350311
msvcp71.dll Microsoft® Visual Studio .NET 7.10.3077.0
msvcr71.dll Microsoft® Visual Studio .NET 7.10.3052.4
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS4 CS4
Plugin.dll Adobe Photoshop CS4 CS4
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (32 bit) 1.0.0.73
PSArt.dll Adobe Photoshop CS4 CS4
PSViews.dll Adobe Photoshop CS4 CS4
registration.dll Registration 2.0.1.10077 (BuildVersion: 53.352460; BuildDate: Tue Jul 29 2008 16:47:08) 53.352460
SCCore.dll ScCore 2008/07/17-13:28:24 53.351316 53.351316
shfolder.dll Microsoft(R) Windows (R) 2000 Operating System 5.50.4027.300
WRServices.dll WRServices Friday May 30 2008 7:18:42 Build 0.7713 0.7713
Installed plug-ins:
ADM 3.11x01
Accented Edges 11.0
Angled Strokes 11.0
Average 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
BMP 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Bas Relief 11.0
Camera Raw 5.7
Chalk & Charcoal 11.0
Charcoal 11.0
Chrome 11.0
Cineon 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Clouds 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Color Halftone 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Colored Pencil 11.0
CompuServe GIF 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Conté Crayon 11.0
Craquelure 11.0
Crop and Straighten Photos 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Crop and Straighten Photos Filter 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Crosshatch 11.0
Crystallize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Cutout 11.0
Dark Strokes 11.0
De-Interlace 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Difference Clouds 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Diffuse Glow 11.0
Displace 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Dry Brush 11.0
Embed Watermark 3.0
Extrude 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
FXG 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
FastCore Routines 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Fibers 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Film Grain 11.0
Filmstrip 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Filter Gallery 11.0
Fresco 11.0
Glass 11.0
Glowing Edges 11.0
Grain 11.0
Graphic Pen 11.0
HDRMergeUI 11.0
Halftone Pattern 11.0
IFF Format 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Ink Outlines 11.0
Lens Blur 11.0
Lens Correction 11.0
Lens Flare 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Lighting Effects 11.0.2 (11.0.2x20100514 [20100514.r.591 2010/05/14:02:00:00 cutoff; r branch])
Liquify 11.0
MMXCore Routines 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Matlab Operation 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Measurement Core 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Mezzotint 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Mosaic Tiles 11.0
Multiprocessor Support 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
NTSC Colors 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Neon Glow 11.0
Note Paper 11.0
Ocean Ripple 11.0
OpenEXR 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
PCX 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
PNG 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Paint Daubs 11.0
Palette Knife 11.0
Patchwork 11.0
Paths to Illustrator 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Photocopy 11.0
Picture Package Filter 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Pinch 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Pixar 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Plaster 11.0
Plastic Wrap 11.0
Pointillize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Polar Coordinates 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Portable Bit Map 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Poster Edges 11.0
Radial Blur 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Radiance 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Read Watermark 3.0
Reticulation 11.0
Ripple 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Rough Pastels 11.0
Save for Web & Devices 11.0
ScriptingSupport 11.0.2
Send Video Preview to Device 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Shear 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Smart Blur 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Smudge Stick 11.0
Solarize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Spatter 11.0
Spherize 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Sponge 11.0
Sprayed Strokes 11.0
Stained Glass 11.0
Stamp 11.0
Sumi-e 11.0
Targa 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Texturizer 11.0
Tiles 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Torn Edges 11.0
Twain Acquire 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Twain Select 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Twirl 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Underpainting 11.0
Vanishing Point 11.0
Variations 11.0 (11.0x001)
Video Preview 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
WIA Support 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Water Paper 11.0
Watercolor 11.0
Wave 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Wind 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Wireless Bitmap 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
ZigZag 11.0 (11.0x20080919 [20080919.r.488 2008/09/19:02:00:00 cutoff; r branch])
Plug-ins that failed to load: NONE
Flash:
Connections
Kuler
Installed TWAIN devices: NONE -
Indesign CS4 "forgets" file name when saving as Postcript file.
Like the title says Indesign CS4 "forgets" file name when saving as Postcript file.
Example:
I open up indesign CS4 and open up a file called "test5". Then I go to the print menu and save it as a postscript file. Once the save as dialog box comes up it wont say "test5" but it uses whatever file name I used last time I created a PDF.
I want indesign to recognize that when I create a postscript file that I want it to be named the same way as my file that is open at that moment. Changing the file name every time is not bad when they are called "test5" etc but here at this company we use super long file names and it's a pain to change it every time.
Funny thing: Some machines here do it the way in the example but other machines will do it the correct way by using the same name in the save as box.
Any suggestions on how to fix this? If something is not clear just ask!How about this - it's a workaround, I can't change ID or your system.
I'm big on EXACT filenames also, case and space sensative. Do a "Save As" before printing - the file name should be correct and highlighted, ctrl+c copy, escape/cancel the Save As. Paste in the filename during the Save as Postscript File. -
Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem.
iPad 2, iOS 5.0.1Why icannot export pdf file from other app to ibook (after update today)?. Please correct my problem.
iPad 2, iOS 5.0.1 -
How do I get my photos to sort by file name when sync'd to the iPad?
How do I get my photos to sort by file name when sync'd to the iPad? The default sorting method changes the order of pictures when sync'd from my pc.
http://support.apple.com/kb/HT4221
-
How to retain numerical order (Of file names) when combining files in Acrobat (9) Standard, please see the attached screenshot for a clearer explanation.
I understand that if we prefix all files with leading zero's this will probably resolve the issue but I just wondered if anyone new the answer. The ironic situation is that version 6 has no problem.
I have spent over an hour with techincal support who were unable to provide me with an answerIt is not clear how you are trying to do the order. Have you tried to select a set of files and then use the arrow buttons to move them in the list? If you select the heading, that will typically reorder the files by that heading and undo everything you had done before.
You should be able to select groups of files and move them up and down in the list. All of those options appear on your view, so what is the real question? -
Same file name when downloading new pics
The prev camera I had (Sony Cyber shot/Steady Shot?)always kept dynamic file numbers/names however now have Nikon D90 and now if do search on a file number now get numerous pics under same file name as new camera restarts at same number all the time.
Is there an easy way to deal with this. I would really not want to have to rename all files as soon as I download them. That can be over 300 pics at a time.
Any help would be greatly appreciated! Thanks!When I say file name I mean the name/number that appears under the pic in iphoto.
Yes that is the file name
Do most people leave these numbers or change them, do you know?
Most people leave it - some preprocess all photos and assign meaningful file names and then import
I know you can assign words to them and then retrieve them by calling up all pics associated with that word(s).
You can assign a title (which can optionally be used as the file name when you export photos), a description, keywords, and a rating
Do you have any other hints for me? Do you use the Mangler software you referred to in the prev post?
Normally I do not modify the file names - if I get photos from someone else I usually use name mangler to identify the source (which I could do with keywords but for photos that are not mine I prefer having the file name show the source) - once in a while I will change some but normally I just import directly from the camera and ignore the file name
LN -
Ipad only uses one file name when uploading images via email
We have an image tool that uploads images to a template website. The problem is the file names for these images must be unique any duplicate file names will be rejected. Some of our users want to be able to upload from the field but Ipad only assigns the file name "photo.JPG" to jpegs. It doesn't seem to include the sequential extension that actually does exist for the image on the file name when uploading. Is there a way to get ipad to do so, or is this something that Apple maybe want to consider looking into. I can easily see the average Joe emailing themselves images and hitting save only to replace and lose an older image because let's face it, not all users are on MACs and PC's do not allow multiple files to have the same file name in the same folder.
Hi,
Based on the description, you could send email to external addresses without the Twin Oaks software. However, with the Twin Oaks software, you couldn't send successfully.
For this issue, I recommend you enable message tracking and check whether you could retrieve message tracking log entires when you send emails to external addresses through the Twin Oaks software.
If you couldn't retrieve message these tracking log entires when you send emails to external addresses through the Twin Oaks software, it means that the Exchange server is OK and the crux of the problem is the Twin Oaks software.
Here is an article about message tracking log for your reference.
Get-MessageTrackingLog
http://technet.microsoft.com/en-us/library/aa997573(v=exchg.141).aspx
Best regards,
Belinda
Belinda Ma
TechNet Community Support -
Keeping file names when rendering out DPX to QT
I am trying to convert a dpx sequence to a quicktime to use for offline editing. When I export the files it does not keep the original file name. It replaces the file name with 1_g1, 2_g1 and so on. I cannot find a way to tell color to keep the orginal file name on export. I still new to Color , but I am quite familiar with encoding programs. Is there really not a way to keep the meta data including the original file name when exporting files?
There's a Chapter on this in the online Color Help...
-
Copy&paste file names when bouncing
too bad, after upgrading to 7.1.0 it is still impossible to copy&paste file names when bouncing, as was no problem in LP6! That´s very time consuming for me, because for film music I usually have long file names that contain smpte codes. Does anybody have a shortcut?
Hi Orbanl, I was going to post this myself and then found your post so will add to it.
'It used to be in Logic Pro 6 that normal copy/paste worked in the 'name' field of the save and bounce windows (even kept them seperate as far as clipboards went). Now, in Logic 7.1 the only way I can initiate a copy or paste when saving the song or naming the bounce is a right mouse click (cntrl-click)? to bring up these options. Are there no key commands for the navigation services anymore? This is a huge time killer for me as I often save 60~100 files with the same root name and was able to quickly initiate and save/bounce without stopping to pick up the mouse (now I have to switch back and forth between the keyboard and mouse to initiate, name copy+paste and modify name). Thanks in advance.'
Over at the Logic Pro Forum, Peter suggested in response to this post that the Pro App Support update v3 might have something to do with it as his Logic 10.3.9 DOES support normal copy/paste commands! Unfortunately I am running 10.3.8 and the Pro App update v3 specically notes 10.3.9 as its requirement. The only reason I have not upgraded to 10.3.9 is I use a lot of esoteric shareware music software and I understand 10.3.9 had some 'sprinkling' of Tiger in it that at least for several friends of mine broke older app's that were running fine in 10.3.8.
Here is the link if you are running 10.3.9.
Pro Application Update 3.0 -
Changing user & table name when deploying CMP from jdev902
Hi
How can I choose different user and table name when deploying CMP EJB other then Oracle/CMP name from Jdev902 to OC4J 902. I have tried edinting orion-ejb-jar.xml's entity-deployment tag with limited succes ie: it works fine when I deploy to the inbedded OC4J but when I try deploying to standalone OC4J I get table created in Oracle user and a table with the same name as the CMP.
I have also tried deploying the connections.xml along with the java classes, that didn't work either.
All help is appreciated - ThanksYou can do a Restore for the iPod with your computer again, but bear in mind that it will erase all data on the iPod and replace with the library of music files on your iTunes.
How to do a Restore? that is simple, download iTunes 7.01 and install it your computer, open it and plug your iPod with it, then click Restore.
http://www.apple.com/itunes/download/
to restore your iPod to factory settings.
http://docs.info.apple.com/article.html?artnum=60983 -
How is it posible to get the File name, size and type from a File out the H
How is it posible to get the File name, size and type from a File out the HttpServletRequest. I want to upload a File from a client and save it on a server with the client name. I want to conrole before saving the name, type and size of the file.How is it posible to get the File name, size and type from a File out the HttpServletRequest.
form JSP
<form name="form" method="post" action="procesuploading.jsp" ENCTYPE="multipart/form-data">
File: <input type="file" name="filename"/
Path: <input type="text" readonly="" name="path" value="c:"/
Saveas: <input type="text" name="saveas"/>
<input name="submit" type="submit" value="Upload" />
</form>
proces JSP
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="FileUploadBean" %>
<jsp:useBean id="TheBean" scope="page" class="FileUploadBean" />
<%
TheBean.doUpload(request);
%>
BEAN
import java.io.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletInputStream;
public class FileUploadBean {
public void doUpload(HttpServletRequest request) throws IOException
String melding = "";
String filename = request.getParameter("saveas");
String path = request.getParameter("path");
PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("test.java")));
ServletInputStream in = request.getInputStream();
int i = in.read();
System.out.println("filename:"+filename);
System.out.println("path:"+path);
while (i != -1)
pw.print((char) i);
i = in.read();
pw.close();
}Thanks it works great.
Here an excample from my code
import org.apache.commons.fileupload.*;
public class FileUploadBean extends Object implements java.io.Serializable{
String foutmelding = "geen";
String path;
String filename;
public boolean doUpload(HttpServletRequest request) throws IOException
try
// Create a new file upload handler
FileUpload upload = new FileUpload();
// Set upload parameters
upload.setSizeMax(100000);
upload.setSizeThreshold(100000000);
upload.setRepositoryPath("/");
// Parse the request
List items = upload.parseRequest(request);
// Process the uploaded fields
Iterator iter = items.iterator();
while (iter.hasNext())
FileItem item = (FileItem) iter.next();
if (item.isFormField())
String stringitem = item.getString();
else
String filename = "";
int temp = item.getName().lastIndexOf("\\");
filename = item.getName().substring(temp,item.getName().length());
File bestand = new File(path+filename);
if(item.getSize() > SizeMax && SizeMax != -1){foutmelding = "bestand is te groot.";return false;}
if(bestand.exists()){foutmelding ="bestand bestaat al";return false;}
FileOutputStream fOut = new FileOutputStream(bestand);
BufferedOutputStream bOut = new BufferedOutputStream(fOut);
int bytesRead =0;
byte[] data = item.get();
bOut.write(data, 0 , data.length);
bOut.close();
catch(Exception e)
System.out.println("er is een foutontstaan bij het opslaan de een bestand "+e);
foutmelding = "Bestand opsturen is fout gegaan";
return true;
} -
Forefox won't start in windows XP: I get the message that windows "cant' find the exe file" even when I click from the program file, rather than the shortcut.
Delete the current Firefox shortcut on the desktop and create a new desktop shortcut via the right-click context menu on the Firefox.exe program (Send to > Desktop)
-
When I try and download app updates via wi-fi to my Ipad I get an error message "Your account is not valid for use in the Australian store. Your must switch t the US store before purchasing. I am currently in the US on wi-fi. How do I switch
Change App Store
1. Tap "Settings"
2. Tap "iTunes & App Stores"
3. Tap on your Apple ID
4.Tap "View Apple ID"
5. Enter your user name and password.
6. Tap "Country/Region."
7. Tap "Change Country/Region"
8. Select the country/region where you are located.
9. Tap "Done".
Note: If the change doesn't take effect, sign out of account and sign in again.
Maybe you are looking for
-
Not able to get the database data into the Tree Control
Hi Everybody, I have to populate the tree control with nodes and items, which is to be populated from the database, and the tree control is <b>dynamic</b>. I mean, there is a <b>toolbar</b>, whenever a <b>pushbutton is clicked</b>
-
1KEK and 1KEI Difference between FI and PCA KE5U
Hello All, We have a difference between our FI and PCA and that is shown when we run the Transaction KE5U. we have a calendar year with 4 special periods as our fiscal year and 12 2010 was the last normal period The business made some postings in per
-
Hyperlinks in PDF preview do not work
Hyperlinks in the preview PDF files that people first see when they click a Send link do not work. Can this possibly be fixed? Some users may not want to go through the hassle of downloading the document and want to be able to use the full document f
-
Roller Coaster Tycoon 3; Is this item compatible with my MacBook Pro?
Hello, I have a MacBook pro that uses OS X 10.7.3 (newest version of Lion) with 4 GBs of Ram. I am purchasing Atari's RollerCoaster Tycoon 3 Platinum for Mac from here: http://www.amazon.com/RollerCoaster-Tycoon-3-Platinum-Mac/dp/B0048XAVC2. Before I
-
I'm having difficulties finding a trial version of the CPS software or any related info on Adobe's site. I have contribute CS4 and would like to evaluate a solution where others can edit sections of my website in a browser. I thought contribute enabl