Item.getName() still has bug?

you know the upload library method item.getname had bugs before?
bug was this method was getting the full path of the uploaded file...i know it was fixed...
i think i am using the latest libraries...on my project i have tried many times and tested to some people...2 person's filenames uploaded correct as only the picture name...but the exception person's pictures uploaded as c:/my pictures/xxx.jpg
my codes are very simple that has no error but the item.getname function has problems ?what you think
thank you

You need to extract only the filename portion from item.getName(). I seem to recall that this code works:
public String basename(String fn) {
    String fileName = fn
    File f = new File(fileName);
    String par = f.getParent()
    if (par != null)
        fileName = fn.replaceFirst(par, "")
    return fileName;
}Brian

Similar Messages

  • ITunes 7.5 greatly improves FREEZE, still has bugs.

    I updated to the new iTunes 7.5 this weekend. The biggest problem i've had and noticed that many other users had is the freezing of iTunes everytime a song reaches the 8 or 9 second mark. Well this was a big issue for me because it made it impossible to listen to my iPod on my computer at work. The new version of iTunes has greatly improved the lag. It still locks up and the resources still shoot up to 100%, but not it only lasts a few seconds. It's enough to satisfy me at least for now. I'm not aware of any other bugs that pertain to my use, and i'm still waiting for the new firmware update as well, but this is definitely a step in the right direction.
    I would also like to mention that i've updated to 1.0.2 and saw a significant improvement in the iPods menu response, so i don't know why so many people are afraid of the firmware. We're getting there folks, slowly but surely.

    After installing 7.5 yesterday afternoon, I thought the freezing problem was gone. Once I got home and started really working with it, I found that the freeze is still there, but down to 5 seconds or so. That's far better than the 15-20 seconds before, but still not acceptable. I suppose the rest of the fix will take a firmware update. 7.5 still hasn't fixed the slowness of moving playlists into folders. After about 10,000 of them, which can only be moved one at a time, it takes 3 or 4 seconds to move one. I've always synced my iPods manually, but because I can only sync my new iPhone via playlists, I'm having to add all my music to the iTunes library and make a playlist for every album. It's a major pain and I will never understand why iTunes doesn't allow moving more than one playlist at a time.

  • LR 1.4 still has bug importing from CD.

    I still have a problem importing more than one file by File>import from CD or DVD. I must go Start>My computer>drive#, highlight files, and drag into Library. It also works, if the drive is still listed in Folders, to right click on it>show in explorer, then highlight, & drag.

    I might have the same problem!!
    l import my cd onto the itunes, then once it is on, l got to play it and it sounds clear and everything but it skips and sounds very choppy both on my itunes and on my ipod. l just got it today and it is brand new!!!
    can someone please help me!!
    thanks

  • HT201412 After ios7, My iphone4 has gone dead twice in a time frame of around two months...even though its not happening very often but a two month Old phone going dead just after a New update is not acceptable.probably ios7 still has sum bugs dat need to

    After ios7, My iphone4 has gone dead twice in a time frame of around two months...even though its not happening very often but a two month Old phone going dead just after a New update is not acceptable.probably ios7 still has sum bugs dat need to be fixed...Can this bug expected to be fixed in the next update...

    Hi 1283ar.
    Unfortunately, iOS 7 is too hard to push for the iPhone 4 and therefore has a lot of effects turned off to try to get it to run as smoothly as possible.
    However, it becomes better and better with each update coming but it's hard to do anything about the hardware on an already released phones.
    If you still have trouble or think they are too hard. My tip is, if so, to restore your iPhone 4 and make a clean setup with no iCloud backup. But all your photos in a photostream so you can access it later.

  • Planned orders still has invalid bom item

    Hi
    an item in a material code/s bom has already been invalidated since May, but now in planned order, still has this item, what is the problem?
    thanks all in advance.!!

    Hi Lauliu,
    Please make sure following points:
    1) In ECC BOM, you made your component invalid.
    2) CIF these changes (Making comp invalid) to APO.
    3) In APO, check PPM/PDS whichever you are using that this component is invalid.
    Once you are done with this, the orders which will get created in future will not have this component (After validity date)
    However, the orders which were already available in APO will continue to feature this component.
    Now, for these orders you might want to consider deletion of this component from all the orders.
    Or delete all the orders and recreate. Once you recreate, invalid component will not feature in your newly created orders.
    Let us know if this solves your issue.
    Regards,
    Abhay Kapase

  • The menu item "TV shows" has disappeared

    The menu item “TV shows” has disappeared in the video section of my ipod. I downloaded and watched a TV show earlier and now it’s completely gone (both the show and the menu item). Please help!
      Windows XP  

    Oh my god! It worked! Hallelujah! Thank you!
    Is that normal for menu items to disappear? I wasn’t worried about the specific TV show being gone but it was bugging me that the menu item was gone. Shouldn’t “TV Shows” be listed whether or not there are TV shows downloaded? For example the “video pod casts” & “music videos” still show in the video list even when they are empty. I would expect the same of the TV Shows. Anyway thanks again!!!
    Elaine

  • HT1725 When I click on a Movie I get the following "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu." Then get err = 11111

    iTunes quit unexpectedly during the download of a movie.  When I click on that movie now I get the following message: "You have already purchased this item but it has not been downloaded. To download it, select Check For Available Downloads from the Store menu."
    I follow the instructions, but the download still doesn't resume - err = 11111
    Any advice?

    Yeah, I am going to blast my iPhone for the 4th time today and pray this goes away. I had 6 apps showing updates, the 6 badge icon shows on the App Store on my iPhone and, having run them all, the 6 apps have two copies each on my iPhone: one that is the old version of the app and will not run and the other is a faded version of the app with an empty progress bar on the icon. Click those and you get an error message about connecting to iTunes, etc. as described in the article I linked to above.
    It gets stranger than this. If I install a completely NEW app, the 6 that are stuck mid-update heal themselves and appear with the new version only, however now completely different apps (Hold Em for instance - which I did not update and didn't need an update) will not launch "app name Cannot Launch" message comes up.
    Agh!

  • ITunes suddenly mentions that my iPhone cannot be synced because it needs 6.55 additional GB, although my phone still has 2 GB free of space. How can I fix this?

    iTunes suddenly mentions that my iPhone cannot be synced because it needs 6.55 additional GB, although my phone still has 2 GB free of space. How can I fix this?
    iCloud is off on both my phone and my computer.

    It is saying that the iPod does not have enough free storage to sync all the items yu have selected to sync to the iPod. You need 2.48 GB more free on the iPod. You need either to select less to sync or delete some content form the iPod.

  • I have a gift card that has been redeemed once but still has money on it how do I reredeem it?

    I have a gift card that has been redeemed once but still has money on it how do I reredeem it? If possible

    Expanding on what Niel said, once you redeem a gift card, the amount of the card is registered in your iTunes Store account and the card can be trashed. All you need do now is log into your iTunes Store account, the one you redeemed the card through, and make purchases. The cost will be deducted from your credit balance automatically.
    A couple of caveats/warnings:
    - you can buy anything in the iTunes Store with the balance other than a gift for someone else;
    - if you don't have a credit card also registered to your account, keep careful watch on your balance so you don't overspend it. If you do, the purchase will go through but you won't be able to download anything else, even free content or items you already purchased, until you add another gift card or a credit card to cover the amount you owe.
    Regards.

  • Check still has Amount

    Hi Experts,
    We have an issue, the client has processed an off cycle payroll for an employee, but the check still has the amount and it included in the YTD total amount.  This amount was not paid to the employee and the taxes on this check are being calculated including this amount in the gross total. 
    The off-cycle check processed and is the only check paid to this employee, as the previous check was voided.  The problem still exist that the voided check did not remove all items from the data base.  The employee totals show incorrectly and the taxes are being calculated on the incorrect gross amount  The employee total YTD amount should show correct amount and the total taxes should be calculated on that amount.
    Please provide your valuable suggestions and let me know how can I proceed?
    Thanks,
    Ramesh

    Hi Friends,
    Please provide your valuable suggestions and let me know how can I proceed?
    Thanks,
    Ramesh

  • I purchased 2 ipad mini's at Xmas, I then sync'd them with itunes on my pc, and put basically the same apps on each of them. Both are 16gb units. One of them is full ( with over 9gb of "other" memory) the ipad still has 10gb left.What could be causing thi

    I purchased 2 ipad mini's at Xmas, I then sync'd them with itunes on my pc, and put basically the same apps on each of them. Both are 16gb units. One of them is full ( with over 9gb of "other" memory) the ipad still has 10gb left.What could be causing this "other" storage

    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    How to Remove “Other” Data from iPhone, iPad and iPod Touch
    http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
    What is “Other” and What Can I Do About It?
    https://discussions.apple.com/docs/DOC-5142
    iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
    http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
    6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
    http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
    Also,
    How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
    http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
     Cheers, Tom

  • Error  Purchase order item 00010 still contains faulty schedule lines

    Hi All,
    when reprocessing an inbound IDOC for PO i am getting these errors
    1) Purchase order item 00010 still contains faulty schedule lines  and
    2) No instance of object type PurchaseOrder has been created. External refer.
    This error is getting during inbound processing and the status sets to 51.
    please help me in solving this
    Thanks,
    Hari kishore

    That ID in Return table is the Message Class of the message you get in return line (check in transaction SE91).
    You can build the text as this:
      CALL FUNCTION 'MESSAGE_TEXT_BUILD'
           EXPORTING
                msgid               = return-id
                msgnr               = return-number
                msgv1               = return-message_v1
                msgv2               = return-message_v2
                msgv3               = return-message_v3
                msgv4               = return-message_v4
           IMPORTING
                message_text_output = built_msg_text
           EXCEPTIONS
                OTHERS              = 1.
    As for the message itself, i don't know what it may be.
    Read Schedule lines parameter documentation in SE37, maybe there you have a clue.
    Regards
    Please reward points if helpful

  • Safari 4 has bug(s)

    I did not know that Safari 4 has bug(s), and went ahead to accept the Mac OS Update this afternoon. Now, I found out that I lost certain functions online such as I could not edit my webpage because Safari browser would not go to the webpage where I had to get on. Is there a recourse that I can reverse the Safari version to the older one?
    Thanks.
    Robert

    Hi, Dimaxum,
    Thank you very much for posting back your good experience with Safari 4 in working with your website. Well, my website through Verizon does not need any software to upload or download. However, the problem was that I could not even click the icon for going to the window of my editable website. This happens in cases of both using Mac OS 10.4.11 and Mac OS 10.5.7. In the meantime, I could still go to my website with the old Safari 3.2.3. I checked the functions with different computers with Safari 4, which showed the same problems.
    I believe that Safari 4 is far from perfect. Many users are complaining like I did. Worst of all, they could not uninstall Safari 4. I have spent more than a day, before I finally used 'archive and reinstall" to solve the problems. Now, I am happy again in using my computers with Safari 3.2.3 in both Mac OS 10.4.11 and and Mac OS 10.5.7. I hope that the bugs are only limited in these functions. But, who knows. One more thing that I realized is with Safari 4, the computer could not complete permission repair. I also hope Apple would move quickly to solve the problems.
    Robert

  • I have downloaded the latest pages  update on my iPad, but my iMac still has version 4.3 and I cannot find out how to update it only desktop. When I try to send something from my iPad pages to via email to be opened on my desktop in Pages, it won't open P

    I have downloaded the latest pages update on my iPad, but my iMac still has Pages version 4.3, and I cannot find out how to update it on my desktop. When I try to send something from my iPad pages via email to be opened on my desktop in Pages, it won't open in Pages. I get a message that it can't be opened because the version is too old. I sent the document as a PDF and it worked. But I want to be able to use Pages back and forth. HOw do I update the Pages version on my desktop iMac?

    The file format used by the iOS versions of the iWork apps can only be read by the new iWork apps on your Mac - i.e. Keynote 6, Pages 5 & Numbers 3. Those versions for the Mac require Mavericks, OS X 10.9. The "too old" error on a Mac comes if you are trying to open an iWork '08 or earlier file in the newest apps. If you do have the newest apps you can open the files from your iPad.
    If you can't or don't want to upgrade to Mavericks & the newest iWork apps your best option would be to export/share the files from the iPad to a type an older version of iWork can read such as Word, text, Excel, etc.
    Or contact AppleCare. They made this mess, let them fix it.

  • My iTunes account says that it cannot locate the original file for all of my songs.  My iPhone still has all the music and is able to play the songs, if I sync and backup my iphone will the songs be replaced with the empty copies from my itunes library?

    So basically I tried to back up my itunes library to my external hard drive and when I followed the instructions and then went to play a song it said Orginal file cannot be found. It said that for all of the songs. I'm not sure how to fix what I did, I already tried consolidating and all of that stuff and it didn't locate the files.  I'm guessing that I somehow deleted the original songs along the way.  I synced my iPhone without knowing what I did and surprisingly all of the music is still on my phone.  So now that I've completely screwed up my iTunes account, I need to know how to get all my music back onto my iTunes account and have that library only on my external hard drive, not my computer. Everything looks fine on my iTunes besides the fact that it cannot locate the files but what I'm afraid of is me syncing and backing up my iPhone and then being left with no music because it syncs to the empty songs.  How can I fix this? and if I can't fix my iTunes library is there anyway for me to still be able to backup my iphone and all the music on it, without erasing my music?

    Well I'm not sure if I correctly backed up my itunes library because when trying to open itunes from that back up it keeps saying original file not found. Okay this is going to sound confusing but bear with me.  I "backed up" my itunes, meaning I just dragged and dropped the iTunes folder into my external hardrive, and then I changed the destination on iTunes to open from my external hardrive.  It was working fine when I did that, however I did that just on my own, I didn't know about consolidating the files or any of that so I hadn't done that before copying the folder to my external hard drive. I can't remember but I'm pretty sure I deleted the iTunes folder after I had copied it to my external hardrive. So I did that and it was working fine, I was able to open my itunes with my external hardrive.  BUT yesterday I thought that I hadn't done it correctly because I didn't consolidate the files and all that, so I wanted to be more thorough and do that, I followed the steps to do that but when I did that I think it got all the files from my computer and not from my external hard drive so it basically didn't find anything on my computer because I had deleted them. And like an idiot, I replaced the iTunes folder on my external hard drive (the one I did correctly the first time), with the one I did wrong. So I believe I pretty much deleted all the music files from both my external hard drive and my computer. Please correct me if I'm wrong?
    I believe getting all my music back on my itunes is a lost cause. BUT I still have all my songs and stuff on my iPhone. My question is, if I plug my phone into my computer and sync it, will it erase all my songs from my phone? A little more info, my iTunes still has the names and stuff of all my songs, they just can't be played because the files are missing, my iPhone doesn't need to erase and sync when I plug in my phone because it's already synced to my computer. What I'm afraid of is when I plug in my phone to backup and sync, will it erase my music because it can't find the files on my computer or external hard drive anymore? Or will it just leave the songs because they're already there (on my phone) and only sync the new songs that I've downloaded? I just need to know is my iTunes still going to be functional as far as me being able to backup my phone?
    I have a lot of songs purchased from iTunes but a lot (like 60%) are from CDs that I no longer have. So re-downloading my music would only account for 40% of my library.

Maybe you are looking for

  • HELP: How do I use iPhoto 08 to import images onto my iPhone 3G?

    Hi, I was wondering how best to import images into my iPhone 3G for viewing. Most of my image files are large high quality 2 -4 MB files. Is there an easy way to downsize the files for viewing on the iPhone 3G? Does iPhoto have a setting specific for

  • DNS Forwarding Servers

    Tenho dois OS X Server na minha rede e após a última atualização (3.1) comecei a perceber um problema estranho com o serviço DNS. Criei uma zona .private para minha rede interna em um server e configurei o outro para ser o secundário dessa zona. Em a

  • Crystal Reports loading Failed in 64 bit OS after installing SAP Runtime

    Dear All,      I am using a VB.NET application and the reports are designed using Crystal Reports version 9. All the reports are working fine in 32 bit OS. After the application is deployed in the 64 bit machine, while connecting from the crystal rep

  • What config is required to set up Transportaion planning for the delivery?

    Hi experts, I am trying create shipment for delivery.It not picking the delivery for shipment.I checked the status in delivery and Transportaion planning is not showing as 'A'.What config is required to set up TP for the delivery? Please advise

  • Excise on Net and VAT on Net plus margin

    Hi. We purchase some material from a vendor. This vendor in turn is an intermediary who purchases it  from a manufacturer. The Manufacturer sells this material to vendor at say Rs. 100/- + ED of 8%. The vendor adds a margin of Rs. 40 to it, making th