Jump to content
You must now use your email address to sign in [click for more info] ×

I cannot drag and drop a jpg or png into Affinity Photo V2


filoplume

Recommended Posts

I think I solved it:

It appears to be the filename length.

Files with a filename longer than 256 Chars cannot be dragged and dropped into the v2 Suite, nor can they be opened via Ctrl+O open dialogue.

If you adjust the filename to be shorter than 256 Chars, then files can be drag'n'dropped and also open fine via Ctrl+O.

Of course it would be nice to get this fixes, as those files have long filenames for a reason and truncating the descriptive Filename isn't really an acceptable workaround.

Link to comment
Share on other sites

38 minutes ago, Thorsten Zimmermann said:

I think I solved it:

It appears to be the filename length.

Files with a filename longer than 256 Chars cannot be dragged and dropped into the v2 Suite, nor can they be opened via Ctrl+O open dialogue.

If you adjust the filename to be shorter than 256 Chars, then files can be drag'n'dropped and also open fine via Ctrl+O.

Of course it would be nice to get this fixes, as those files have long filenames for a reason and truncating the descriptive Filename isn't really an acceptable workaround.

Problems with the length of a file name are down to Windows constraints and are not unique to Affinity. Although 256/260 characters is a good, rough estimate of the maximum length that can be used, this does vary depending on how/where and in what app you are using it. For example: files that work fine on your PC may cause errors if you try to burn them to a CD/DVD (Yes, a few of us still do that!) It's also important to remember that it isn't just a long file name that can cause problems, the total length of the file path is critical. So, if you have a long file name to start with, then try to save it to a well buried folder, you may well have problems. (Actually the rules regarding the length, and permitted characters, of a file name get much more complicated that this, these are just the basics!)

There isn't really a "fix" for this, it's just how Windows works. (Although, with newer versions of Windows, I believe there are "hacks" you can use to enable longer file names.) If you want to have long "descriptive" file names, that's up to you. But, for me, a file name is simply there to uniquely identify the file, it isn't intended to list the entire contents, and every detail, of the file! (Way back you were stuck with short file names that could only consist of eight characters plus three for the file type, so be grateful for modern long files names; don't confuse naming a file with writing a novel!)

Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz :  32GB RAM : Intel UHD Graphics 630 : Windows 10 Home
Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad

Link to comment
Share on other sites

2 hours ago, PaulEC said:

don't confuse naming a file with writing a novel!

the files are auto named by Stable Diffusion according to their prompts - you invested a lot of mind reading into your lengthy answer.

mind reading isn't a basis on which tackling tech-issues seems a worthwhile endeavor.

v2 can't deal with >256 chars filenames. full stop. I said from the get go that a discussion about how and why and why not the filenames are lengthy is not leading towards a technical solution. yes, filenames can be altered, they can be lengthened, shortened, renamed, recomposed, translated, turned into a rhyme, turned into numerics, uppercases, lowercases. why are we having this discussion, I already said it's stupid.

v2 needs a fix to handle these filenames, since much inferior "windows" applications do not seem to have an issue with them, there's no argument to be made why the awesome Affinity v2 Suite should be the incapable standout.

Edited by Thorsten Zimmermann
typo
Link to comment
Share on other sites

My apologies, I had no intention of starting an "argument!"! The simple fact is that restrictions to file and path naming and length is controlled by the operating system! There may, for all I know, be other restrictions in individual software, including Affinity! However, I am sure you will find that (unless you try hacking the Windows registry) using file names longer than 256/260 characters will cause some problems!

Please feel free to ignore any other posts I may make in these forums, as I can assure you I have no wish to argue with or offend anyone by offering unwanted help or advice.

Acer XC-895 : Core i5-10400 Hexa-core 2.90 GHz :  32GB RAM : Intel UHD Graphics 630 : Windows 10 Home
Affinity Publisher 2 : Affinity Photo 2 : Affinity Designer 2 : (latest release versions) on desktop and iPad

Link to comment
Share on other sites

  • 1 month later...

 

On 11/18/2022 at 3:48 PM, PaulEC said:

There may, for all I know, be other restrictions in individual software, including Affinity! However, I am sure you will find that (unless you try hacking the Windows registry) using file names longer than 256/260 characters will cause some problems!

This is an interesting take and might be true in many cases.
When you want to program with for example python, the official installer recommends  and gives the option of disabling the 256char limit. Disabling that limit is done to prevent problems and having much easier debugging (finding errors) capabilities.

Sketchbook (with Affinity Suite usage) | timurariman.com | gumroad.com/myclay
Windows 11 Pro - 22H2 | Ryzen 5800X3D | RTX 3090 - 24GB | 128GB |
Main SSD with 1TB | SSD 4TB | PCIe SSD 256GB (configured as Scratch disk) |

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.